Class: Rafflesia::MapModelFitCyclicParameters

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb

Constant Summary collapse

HASH_ATTRS =
{
  component_axis_rank: :component_axis_rank,
  component_spin_degrees: :component_spin_degrees,
  component_tilt_radial_degrees: :component_tilt_radial_degrees,
  component_tilt_tangential_degrees: :component_tilt_tangential_degrees,
  cyclic_copy_count: :cyclic_copy_count,
  phase_degrees: :phase_degrees,
  ring_axis_direction: :ring_axis_direction,
  ring_center: :ring_center,
  ring_radius_angstrom: :ring_radius_angstrom
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitCyclicParameters

Returns a new instance of MapModelFitCyclicParameters.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 31

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @component_axis_rank = hash[:component_axis_rank]
  @component_spin_degrees = hash[:component_spin_degrees]
  @component_tilt_radial_degrees = hash[:component_tilt_radial_degrees]
  @component_tilt_tangential_degrees = hash[:component_tilt_tangential_degrees]
  @cyclic_copy_count = hash[:cyclic_copy_count]
  @phase_degrees = hash[:phase_degrees]
  @ring_axis_direction = (hash[:ring_axis_direction] || [])
  @ring_center = (hash[:ring_center] || [])
  @ring_radius_angstrom = hash[:ring_radius_angstrom]
end

Instance Attribute Details

#component_axis_rankObject

Returns the value of attribute component_axis_rank.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def component_axis_rank
  @component_axis_rank
end

#component_spin_degreesObject

Returns the value of attribute component_spin_degrees.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def component_spin_degrees
  @component_spin_degrees
end

#component_tilt_radial_degreesObject

Returns the value of attribute component_tilt_radial_degrees.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def component_tilt_radial_degrees
  @component_tilt_radial_degrees
end

#component_tilt_tangential_degreesObject

Returns the value of attribute component_tilt_tangential_degrees.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def component_tilt_tangential_degrees
  @component_tilt_tangential_degrees
end

#cyclic_copy_countObject

Returns the value of attribute cyclic_copy_count.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def cyclic_copy_count
  @cyclic_copy_count
end

#phase_degreesObject

Returns the value of attribute phase_degrees.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def phase_degrees
  @phase_degrees
end

#ring_axis_directionObject

Returns the value of attribute ring_axis_direction.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def ring_axis_direction
  @ring_axis_direction
end

#ring_centerObject

Returns the value of attribute ring_center.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def ring_center
  @ring_center
end

#ring_radius_angstromObject

Returns the value of attribute ring_radius_angstrom.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_cyclic_parameters.rb', line 20

def ring_radius_angstrom
  @ring_radius_angstrom
end