stellar_evolution.manager_data_model module¶
Class Inheritance Diagram¶
Define the data model for stellar_evolution_manager sqlalchemy based.
-
class
stellar_evolution.manager_data_model.
InterpolationParameters
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The nodes and smoothing arguments for a given interpolator/quantity.
-
interpolator
¶
-
interpolator_id
¶ The interpolator this set of nodes applies to.
-
log_quantity
¶ Is the log of the given quantity interpolated instead of the quantity?
-
nodes
¶ The number of nodes used when constructing the interpolator for the given quantity.
-
quantity
¶
-
quantity_id
¶ The ID of the quantity to which this set of nodes applies.
-
smoothing
¶ The smoothing argument used when constructing the interpolator for the given quantity.
-
vs_log_age
¶ Is the given quantity interpolation vs log(age) instead of age?
-
-
class
stellar_evolution.manager_data_model.
ModelSuite
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The various stellar evolution suites (e.g. MESA, YREC, …).
-
id
¶ A unique identifier for the suite.
-
name
¶ The name of the suite.
-
-
class
stellar_evolution.manager_data_model.
Quantity
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The set of quantities tracked by stellar evolution.
-
id
¶ A unique identifier for each quantity.
-
name
¶ The name used for this quantity by the stellar_evolution module.
-
-
class
stellar_evolution.manager_data_model.
SerializedInterpolator
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The current set of serialized stellar evolution interpolators.
-
checksum
¶ A checksum of the serialized interpolator file.
-
filename
¶ The name of the file containing the serialized interpolator.
-
id
¶ A uniquie identifier for each serialized interpolator
-
name
¶ A unique human-readable name assigned to this interpolator.
-
parameters
¶
-
tracks
¶
-
-
class
stellar_evolution.manager_data_model.
Track
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The available stellar evolution tracks.
-
checksum
¶
-
feh
¶ The [Fe/H] of the track contained in the given file.
-
filename
¶ The absolute name of the file containing the track.
-
id
¶ A unique identifier for each track.
-
mass
¶ The stellar mass of the track contained in the given file.
-
model_suite_id
¶ The stellar evolution suite used to calculate the tracks.
-
suite
¶
-
-
class
stellar_evolution.manager_data_model.
VarchangeAgeNode
(**kwargs)[source]¶ Bases:
stellar_evolution.manager_data_model.VarchangeGridNode
,sqlalchemy.ext.declarative.api.Base
The nodes in the mass dimension for a variable change grid.
-
grid_id
¶ The grid this set of nodes belongs to.
-
index
¶ The index of the node along the relevant dimension of the grid.
-
value
¶ The value of the independent variable at the node.
-
-
class
stellar_evolution.manager_data_model.
VarchangeDependentValue
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The values of the dependent variables at the grid nodes.
-
age_node_index
¶ The age index of the tabulated value.
-
feh_node_index
¶ The [Fe/H] index of the tabulated value.
-
grid_id
¶ The grid at which this variable is tabulated.
-
mass_node_index
¶ The mass index of the tabulated value.
-
value
¶ The value of the dependent variable at the node.
-
variable_id
¶
-
-
class
stellar_evolution.manager_data_model.
VarchangeDependentVariable
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The variables from which to transforming to M*, [Fe/H] and age.
-
id
¶ A unique identifier for each dependent variable.
-
name
¶ The name used for this variable by the stellar_evolution module.
-
-
class
stellar_evolution.manager_data_model.
VarchangeFeHNode
(**kwargs)[source]¶ Bases:
stellar_evolution.manager_data_model.VarchangeGridNode
,sqlalchemy.ext.declarative.api.Base
The nodes in the mass dimension for a variable change grid.
-
grid_id
¶ The grid this set of nodes belongs to.
-
index
¶ The index of the node along the relevant dimension of the grid.
-
value
¶ The value of the independent variable at the node.
-
-
class
stellar_evolution.manager_data_model.
VarchangeGrid
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The currently saved variable change grids.
-
age_nodes
¶
-
dependent_values
¶
-
feh_nodes
¶
-
id
¶ A unique identifier for each grid.
-
interpolator_id
¶ The interpolator used to generat this grid.
-
mass_nodes
¶
-
name
¶ A unique name assigned to this grid.
-
-
class
stellar_evolution.manager_data_model.
VarchangeGridNode
[source]¶ Bases:
object
The nodes of each variable change grid along a single dimension.
-
grid_id
= Column(None, Integer(), ForeignKey('varchange_grids.id'), table=None, primary_key=True, nullable=False)¶
-
index
= Column(None, Integer(), table=None, primary_key=True, nullable=False)¶
-
value
= Column(None, Float(), table=None)¶
-
-
class
stellar_evolution.manager_data_model.
VarchangeMassNode
(**kwargs)[source]¶ Bases:
stellar_evolution.manager_data_model.VarchangeGridNode
,sqlalchemy.ext.declarative.api.Base
The nodes in the mass dimension for a variable change grid.
-
grid_id
¶ The grid this set of nodes belongs to.
-
index
¶ The index of the node along the relevant dimension of the grid.
-
value
¶ The value of the independent variable at the node.
-