posydon.unit_tests.grids

posydon.unit_tests.grids.test_MODELS

Unit tests of posydon/grids/MODELS.py

class posydon.unit_tests.grids.test_MODELS.TestElements[source]

Bases: object

test_dir()[source]
test_instance_MODELS()[source]
test_instance_get_MODEL_NAME()[source]
class posydon.unit_tests.grids.test_MODELS.TestFunctions[source]

Bases: object

bad_MODEL()[source]
test_get_MODEL_NAME(bad_MODEL, capsys)[source]
class posydon.unit_tests.grids.test_MODELS.TestValues[source]

Bases: object

test_value_MODELS()[source]

posydon.unit_tests.grids.test_downsampling

Unit tests of posydon/grids/downsampling.py

class posydon.unit_tests.grids.test_downsampling.TestElements[source]

Bases: object

test_dir()[source]
test_instance_TrackDownsampler()[source]
test_instance_rescale_from_0_to_1()[source]
class posydon.unit_tests.grids.test_downsampling.TestFunctions[source]

Bases: object

test_rescale_from_0_to_1()[source]
class posydon.unit_tests.grids.test_downsampling.TestTrackDownsampler[source]

Bases: object

TrackDownsampler(independent_sample, dependent_sample)[source]
dependent_sample()[source]
independent_sample()[source]
norm_dependent_sample(dependent_sample)[source]
test_downsample(independent_sample, dependent_sample, TrackDownsampler)[source]
test_extract_downsample(independent_sample, dependent_sample, norm_dependent_sample, TrackDownsampler)[source]
test_find_downsample(TrackDownsampler, capsys)[source]
test_init(independent_sample, dependent_sample, norm_dependent_sample, TrackDownsampler)[source]
test_rescale(dependent_sample, TrackDownsampler)[source]
test_say(TrackDownsampler, capsys)[source]

posydon.unit_tests.grids.test_io

Unit tests of posydon/grids/io.py

class posydon.unit_tests.grids.test_io.TestElements[source]

Bases: object

test_dir()[source]
test_instance_BINARY_OUTPUT_FILE()[source]
test_instance_EEP_FILE_EXTENSIONS()[source]
test_instance_GridReader()[source]
test_instance_POSYDON_FORMAT_OPTIONS()[source]
test_instance_RunReader()[source]
test_instance_SINGLE_OUTPUT_FILE()[source]
test_instance_initial_values_from_dirname()[source]
test_instance_print_meta_contents()[source]
test_instance_read_initial_values()[source]
class posydon.unit_tests.grids.test_io.TestFunctions[source]

Bases: object

grid_csv_files(tmp_path)[source]
inlist_grid_points_files(tmp_path)[source]
test_initial_values_from_dirname()[source]
test_print_meta_contents(grid_csv_files, capsys)[source]
test_read_initial_values(tmp_path, inlist_grid_points_files)[source]
class posydon.unit_tests.grids.test_io.TestGridReader[source]

Bases: object

Empty_dir(tmp_path)[source]
GridReader(tmp_path, Grid_files)[source]
Grid_files(Run_path)[source]
Run_path(tmp_path)[source]
test_get_input_folders(Empty_dir, GridReader, capsys)[source]
test_infer_history_columns(GridReader)[source]
test_init(tmp_path, Run_path, GridReader)[source]
test_read_posydon_format(GridReader, Empty_dir, capsys)[source]
class posydon.unit_tests.grids.test_io.TestRunReader[source]

Bases: object

RunReader(tmp_path)[source]
Run_files(tmp_path)[source]
test_init(tmp_path, RunReader, capsys)[source]
test_read_posydon_format(RunReader, Run_files, capsys)[source]
test_report(RunReader, capsys)[source]
class posydon.unit_tests.grids.test_io.TestValues[source]

Bases: object

test_value_BINARY_OUTPUT_FILE()[source]
test_value_EEP_FILE_EXTENSIONS()[source]
test_value_POSYDON_FORMAT_OPTIONS()[source]
test_value_SINGLE_OUTPUT_FILE()[source]

posydon.unit_tests.grids.test_post_processing

posydon.unit_tests.grids.test_psygrid

posydon.unit_tests.grids.test_scrubbing

Unit tests of posydon/grids/scrubbing.py

class posydon.unit_tests.grids.test_scrubbing.TestElements[source]

Bases: object

test_dir()[source]
test_instance_keep_after_RLO()[source]
test_instance_keep_till_central_abundance_He_C()[source]
test_instance_scrub()[source]
class posydon.unit_tests.grids.test_scrubbing.TestFunctions[source]

Bases: object

ages(models)[source]
binary_history()[source]
models()[source]
star_history()[source]
star_history2()[source]
tables()[source]
test_keep_after_RLO(star_history, binary_history)[source]
test_keep_till_central_abundance_He_C(star_history, star_history2, binary_history)[source]
test_scrub(tables, models, ages)[source]

posydon.unit_tests.grids.test_termination_flags

Unit tests of posydon/grids/termination_flags.py

class posydon.unit_tests.grids.test_termination_flags.TestElements[source]

Bases: object

test_dir()[source]
test_instance_STAR_HISTORY_VARIABLES()[source]
test_instance_check_state_from_history()[source]
test_instance_get_detected_initial_RLO()[source]
test_instance_get_flag_from_MESA_output()[source]
test_instance_get_flags_from_MESA_run()[source]
test_instance_get_mass_transfer_flag()[source]
test_instance_get_nearest_known_initial_RLO()[source]
test_instance_infer_interpolation_class()[source]
class posydon.unit_tests.grids.test_termination_flags.TestFunctions[source]

Bases: object

binary_history()[source]
grid()[source]
iniRLO_boundary()[source]
out_path(tmp_path)[source]
out_path2(tmp_path)[source]
out_path3(tmp_path)[source]
out_path4(tmp_path)[source]
out_path5(tmp_path)[source]
out_path6(tmp_path)[source]
star_history()[source]
test_check_state_from_history(star_history, binary_history)[source]
test_get_detected_initial_RLO(grid, iniRLO_boundary)[source]
test_get_flag_from_MESA_output(out_path, out_path2, out_path3, out_path4, out_path5, out_path6)[source]
test_get_flags_from_MESA_run(star_history, binary_history)[source]
test_get_mass_transfer_flag(star_history, binary_history)[source]
test_get_nearest_known_initial_RLO(iniRLO_boundary, monkeypatch)[source]
test_infer_interpolation_class()[source]
class posydon.unit_tests.grids.test_termination_flags.TestValues[source]

Bases: object

test_value_STAR_HISTORY_VARIABLES()[source]