test_data_creator
¶
-
aims3.test_data_creator.
create_test_model
(M=1.0, Z=0.02, t=4.5, ls=[0, 1, 2, 3])¶ Returns a very crude
Model
that can be used for testing.- Parameters
M (float) – mass of the star, in solar units
Z (float) – metallicity of the model
t (float) – age of the model, in Gyr
ls (list of ints) – angular degrees for which to return modes
- Returns
model – the very approximate model
- Return type
an AIMS3 Model object
-
aims3.test_data_creator.
create_test_track
(M=1.0, Z=0.02, N=20)¶ Returns a
Track
of very crude stellar models, as created bycreate_test_model
, from roughly ZAMS to TAMS.- Parameters
M (float) – mass of the star, in solar units
Z (float) – metallicity of the model
N (int) – number of models along the track
- Returns
track – the track of approximate models
- Return type
an AIMS3 Track object
-
aims3.test_data_creator.
create_test_grid
(Mrange=[1.0], Zrange=[0.02], N=20, metadata={})¶ Returns a
Grid
of tracks of very crude stellar models. The masses and metallicities of each track are generated by iterating over the values given in the iterablesMrange
andZrange
.- Parameters
Mrange (iterable of floats) – masses of the stars, in solar units
Zrange (iterable of floats) – metallicities of the model
N (int) – number of models along each track
metadata (dict) – dictionary of arbitrary metadata to add to the grid
- Returns
grid – the grid of approximate models
- Return type
an AIMS3 Grid object