nextpyp.client.gen.ImagesScale#
- class nextpyp.client.gen.ImagesScale#
Bases:
objectA way to represent the physical size of things in micrograph and tomogram images. These are params common to a set of source images.
Methods
deserialize- rtype:
Creates a new class instance from JSON
serialize- rtype:
str
Converts this class instance into JSON
Attributes
TYPE_IDThe size, in Angstroms, of one pixel in the source image
The radius, in Angstroms, of a particle
Details
- __init__(pixel_a, particle_radius_a)#
- Parameters:
pixel_a (float) –
particle_radius_a (float) –
- Return type:
None
- classmethod from_json(json, type_ids=None)#
Creates a new class instance from JSON
- Return type:
- Parameters:
json (Dict[str, Any]) –
type_ids (Dict[str, str] | None) –
-
particle_radius_a:
float# The radius, in Angstroms, of a particle
-
pixel_a:
float# The size, in Angstroms, of one pixel in the source image
- to_json()#
Converts this class instance into JSON
- Return type:
Dict[str,Any]