Testing module (cosmicpy.tests)

cosmicpy.tests.icosmo.check_cosmology(filename, structure_name='cosmo')[source]

Loads an icosmo cosmology from an idl save file and compares the content of the cosmology structure with results from cosmicpy.

Parameters:
  • filename (str) – Name of the idl save from which to load the cosmology.
  • structure_name (str, optional) – Name of the icosmo cosmology structure stored in the save file.
cosmicpy.tests.icosmo.import_cosmology(filename, structure_name='fid')[source]

Loads an icosmo cosmology from a fiducial structure stored in an idl save file into a cosmicpy cosmology.

Parameters:
  • filename (str) – Name of the idl save from which to load the cosmology.
  • structure_name (str, optional) – Name of the icosmo fiducial structure stored in the save file.
Returns:

cosmo – cosmicpy cosmology corresponding to the icosmo input.

Return type:

cosmology

cosmicpy.tests.icosmo.import_survey(filename, structure_name='fid', expt_name='sv1')[source]

Loads an icosmo survey from a fiducial structure stored in an idl save file into a cosmicpy survey.

Parameters:
  • filename (str) – Name of the idl save from which to load the cosmology.
  • structure_name (str, optional) – Name of the icosmo fiducial structure stored in the save file.
Returns:

surv – cosmicpy survey corresponding to the icosmo input.

Return type:

survey