nextpyp.client.gen.ImagesScale#

class nextpyp.client.gen.ImagesScale#

Bases: object

A way to represent the physical size of things in micrograph and tomogram images. These are params common to a set of source images.

Methods

__init__

deserialize

rtype:

ImagesScale

from_json

Creates a new class instance from JSON

serialize

rtype:

str

to_json

Converts this class instance into JSON

Attributes

TYPE_ID

pixel_a

The size, in Angstroms, of one pixel in the source image

particle_radius_a

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:

ImagesScale

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]