Coverage report: 97%

Files Functions Classes

coverage.py v7.6.9, created at 2024-12-13 03:24 +0000

File function statements missing excluded coverage
src/galsbi/__init__.py (no function) 7 0 0 100%
src/galsbi/citations.py cite_abc_posterior 7 1 0 86%
src/galsbi/citations.py cite_galsbi_release 2 0 0 100%
src/galsbi/citations.py cite_code_release 6 0 0 100%
src/galsbi/citations.py (no function) 4 0 0 100%
src/galsbi/configs/__init__.py (no function) 0 0 0 100%
src/galsbi/configs/config_Fischbacher+24_emulator.py _update_globals 1 0 0 100%
src/galsbi/configs/config_Fischbacher+24_emulator.py (no function) 48 0 0 100%
src/galsbi/configs/config_Moser+24_emulator.py _update_globals 1 0 0 100%
src/galsbi/configs/config_Moser+24_emulator.py (no function) 48 0 0 100%
src/galsbi/configs/config_Moser+24_image.py _update_globals 1 0 0 100%
src/galsbi/configs/config_Moser+24_image.py (no function) 57 0 0 100%
src/galsbi/configs/config_Moser+24_intrinsic.py _update_globals 1 0 0 100%
src/galsbi/configs/config_Moser+24_intrinsic.py (no function) 42 0 0 100%
src/galsbi/galsbi.py GalSBI.__init__ 3 0 0 100%
src/galsbi/galsbi.py GalSBI.generate_catalog 14 0 0 100%
src/galsbi/galsbi.py GalSBI._run 11 2 0 82%
src/galsbi/galsbi.py GalSBI.cite 13 0 0 100%
src/galsbi/galsbi.py GalSBI.load_catalogs 25 0 0 100%
src/galsbi/galsbi.py GalSBI.load_images 17 0 0 100%
src/galsbi/galsbi.py GalSBI._build_combined_catalogs 32 0 0 100%
src/galsbi/galsbi.py (no function) 18 0 0 100%
src/galsbi/load.py load_abc_posterior 8 0 0 100%
src/galsbi/load.py load_config 4 0 0 100%
src/galsbi/load.py _check_custom_config_file 6 0 0 100%
src/galsbi/load.py (no function) 8 0 0 100%
src/galsbi/models.py (no function) 5 0 0 100%
src/galsbi/ucat/__init__.py (no function) 4 0 0 100%
src/galsbi/ucat/config/__init__.py (no function) 0 0 0 100%
src/galsbi/ucat/config/common.py (no function) 161 0 0 100%
src/galsbi/ucat/config/galaxy_catalog.py (no function) 11 0 0 100%
src/galsbi/ucat/filters_util.py create_filter_collection 15 0 0 100%
src/galsbi/ucat/filters_util.py create_filter_collection.add_decam_filters 12 0 0 100%
src/galsbi/ucat/filters_util.py create_filter_collection.add_vista_filters 5 0 0 100%
src/galsbi/ucat/filters_util.py create_filter_collection.add_bessel_filters 5 0 0 100%
src/galsbi/ucat/filters_util.py create_filter_collection.add_johnson_filters 5 0 0 100%
src/galsbi/ucat/filters_util.py create_filter_collection.add_cosmos_filters 39 0 0 100%
src/galsbi/ucat/filters_util.py create_filter_collection.add_hsc_filters 6 0 0 100%
src/galsbi/ucat/filters_util.py store_filter_collection 7 0 0 100%
src/galsbi/ucat/filters_util.py load_filters 10 0 0 100%
src/galsbi/ucat/filters_util.py UseShortFilterNames.__init__ 3 0 0 100%
src/galsbi/ucat/filters_util.py UseShortFilterNames.__call__ 10 1 0 90%
src/galsbi/ucat/filters_util.py UseShortFilterNames.__getattr__ 1 0 0 100%
src/galsbi/ucat/filters_util.py get_default_full_filter_names 2 0 0 100%
src/galsbi/ucat/filters_util.py (no function) 15 0 0 100%
src/galsbi/ucat/galaxy_population_models/__init__.py (no function) 0 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_light_profile.py sample_sersic_berge 14 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_light_profile.py sample_sersic_betaprime 15 2 0 87%
src/galsbi/ucat/galaxy_population_models/galaxy_light_profile.py sample_sersic_for_galaxy_type 15 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_light_profile.py (no function) 6 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py find_closest_ind 4 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py initialize_luminosity_functions 7 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py maximum_redshift 11 1 0 91%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py maximum_redshift.cond_mag_cdf_lim 3 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py m_star_lum_fct 7 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py phi_star_lum_fct 5 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py upper_inc_gamma 6 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py NumGalCalculator.__init__ 2 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py NumGalCalculator.__call__ 8 4 0 50%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py NumGalCalculator._redshift_density 7 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py RedshiftAbsMagSampler.__init__ 12 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py RedshiftAbsMagSampler.__call__ 6 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py RedshiftAbsMagSampler._setup_redshift_grid 9 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py RedshiftAbsMagSampler._setup_mag_grid 7 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py LuminosityFunction.__init__ 19 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py LuminosityFunction.sample_z_mabs_and_apply_cut 23 1 0 96%
src/galsbi/ucat/galaxy_population_models/galaxy_luminosity_function.py (no function) 25 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_position.py sample_position_uniform 18 1 0 94%
src/galsbi/ucat/galaxy_population_models/galaxy_position.py (no function) 7 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py dirichlet_alpha_ev 3 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py draw_dirichlet_add_weight 6 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py sample_template_coeff_dirichlet__alpha_mode 17 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py sample_template_coeff_dirichlet__alpha_mode.dir_mode_to_alpha 5 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py sample_template_coeff_dirichlet__alpha_mode.dir_mode 1 1 0 0%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py sample_template_coeff_dirichlet__alpha_mode.get_max_sigma 1 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py sample_template_coeff_dirichlet 3 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py sample_template_coeff_lumfuncs 12 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_sed.py (no function) 7 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py distortion_to_shear 4 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py sample_ellipticities_gaussian 8 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py pe_disc 10 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py pe_bulge 10 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py sample_ellipticities_beta 11 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py sample_ellipticities_beta_mode 6 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py sample_ellipticities_for_galaxy_type 19 2 0 89%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py backwards_compatibility 15 10 0 33%
src/galsbi/ucat/galaxy_population_models/galaxy_shape.py (no function) 12 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_size.py apply_pycosmo_distfun 3 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_size.py r50_phys_to_ang 5 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_size.py sample_r50_for_galaxy_type 26 3 0 88%
src/galsbi/ucat/galaxy_population_models/galaxy_size.py sample_r50_phys 5 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_size.py backwards_compatibility 6 0 0 100%
src/galsbi/ucat/galaxy_population_models/galaxy_size.py (no function) 7 0 0 100%
src/galsbi/ucat/galaxy_sampling_util.py apply_pycosmo_distfun 3 0 0 100%
src/galsbi/ucat/galaxy_sampling_util.py intp_z_m_cut 26 1 0 96%
src/galsbi/ucat/galaxy_sampling_util.py intp_z_m_cut.find_max_template_ind 5 0 0 100%
src/galsbi/ucat/galaxy_sampling_util.py intp_z_m_cut.app_mag_ref 6 0 0 100%
src/galsbi/ucat/galaxy_sampling_util.py (no function) 13 0 0 100%
src/galsbi/ucat/lensing_util.py sigma_to_fwhm 1 0 0 100%
src/galsbi/ucat/lensing_util.py fwhm_to_sigma 1 0 0 100%
src/galsbi/ucat/lensing_util.py apply_reduced_shear_to_ellipticities 9 3 0 67%
src/galsbi/ucat/lensing_util.py apply_shear_to_ellipticities 3 0 0 100%
src/galsbi/ucat/lensing_util.py shear_to_reduced_shear 2 0 0 100%
src/galsbi/ucat/lensing_util.py distortion_to_shear 4 0 0 100%
src/galsbi/ucat/lensing_util.py shear_to_distortion 4 0 0 100%
src/galsbi/ucat/lensing_util.py distortion_to_moments 11 0 0 100%
src/galsbi/ucat/lensing_util.py moments_to_distortion 11 0 0 100%
src/galsbi/ucat/lensing_util.py moments_to_shear 11 0 0 100%
src/galsbi/ucat/lensing_util.py shear_to_moments 12 0 0 100%
src/galsbi/ucat/lensing_util.py calculate_flux_magnification 2 0 0 100%
src/galsbi/ucat/lensing_util.py calculate_size_magnification 2 0 0 100%
src/galsbi/ucat/lensing_util.py (no function) 14 0 0 100%
src/galsbi/ucat/magnitude_calculator.py flux_to_AB_mag 3 0 0 100%
src/galsbi/ucat/magnitude_calculator.py AB_mag_to_flux 1 0 0 100%
src/galsbi/ucat/magnitude_calculator.py MagCalculatorDirect.__init__ 4 0 0 100%
src/galsbi/ucat/magnitude_calculator.py MagCalculatorDirect.__call__ 19 1 0 95%
src/galsbi/ucat/magnitude_calculator.py MagCalculatorTable.__init__ 4 0 0 100%
src/galsbi/ucat/magnitude_calculator.py MagCalculatorTable.__call__ 18 2 0 89%
src/galsbi/ucat/magnitude_calculator.py (no function) 16 0 0 100%
src/galsbi/ucat/plugins/__init__.py (no function) 0 0 0 100%
src/galsbi/ucat/plugins/apply_shear.py evaluate_healpix_shear_map 6 0 0 100%
src/galsbi/ucat/plugins/apply_shear.py linear_interpolation 2 0 0 100%
src/galsbi/ucat/plugins/apply_shear.py interpolate_maps_fast 13 0 0 100%
src/galsbi/ucat/plugins/apply_shear.py interpolate_maps 12 0 0 100%
src/galsbi/ucat/plugins/apply_shear.py evaluate_hdf5_shear_maps 18 0 0 100%
src/galsbi/ucat/plugins/apply_shear.py Plugin.__call__ 21 0 0 100%
src/galsbi/ucat/plugins/apply_shear.py Plugin.__str__ 1 1 0 0%
src/galsbi/ucat/plugins/apply_shear.py (no function) 16 0 0 100%
src/galsbi/ucat/plugins/galaxy_mag_noise.py mag_to_flux 1 0 0 100%
src/galsbi/ucat/plugins/galaxy_mag_noise.py flux_to_mag 1 0 0 100%
src/galsbi/ucat/plugins/galaxy_mag_noise.py Plugin.__call__ 8 0 0 100%
src/galsbi/ucat/plugins/galaxy_mag_noise.py Plugin.__str__ 1 1 0 0%
src/galsbi/ucat/plugins/galaxy_mag_noise.py (no function) 10 0 0 100%
src/galsbi/ucat/plugins/galaxy_z_noise.py add_z_noise 6 0 0 100%
src/galsbi/ucat/plugins/galaxy_z_noise.py Plugin.__call__ 4 0 0 100%
src/galsbi/ucat/plugins/galaxy_z_noise.py Plugin.__str__ 1 1 0 0%
src/galsbi/ucat/plugins/galaxy_z_noise.py (no function) 9 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies.py Plugin.__call__ 4 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies.py Plugin.__str__ 1 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies.py (no function) 4 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_morph.py Plugin.__call__ 25 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_morph.py Plugin.__str__ 1 1 0 0%
src/galsbi/ucat/plugins/sample_galaxies_morph.py (no function) 12 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py ExtinctionMapEvaluator.__init__ 4 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py ExtinctionMapEvaluator.__call__ 11 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py get_magnitude_calculator_direct 7 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py get_magnitude_calculator_table 4 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py Plugin.check_n_gal_prior 7 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py Plugin.check_max_mem_error 3 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py Plugin.__call__ 91 2 0 98%
src/galsbi/ucat/plugins/sample_galaxies_photo.py Plugin.__str__ 1 1 0 0%
src/galsbi/ucat/plugins/sample_galaxies_photo.py compute_templates_extinction_appmag_for_galaxies 10 1 0 90%
src/galsbi/ucat/plugins/sample_galaxies_photo.py in_pos 1 0 0 100%
src/galsbi/ucat/plugins/sample_galaxies_photo.py (no function) 30 0 0 100%
src/galsbi/ucat/plugins/write_catalog.py get_ucat_catalog_filename 1 0 0 100%
src/galsbi/ucat/plugins/write_catalog.py catalog_to_rec 16 4 0 75%
src/galsbi/ucat/plugins/write_catalog.py Plugin.__call__ 11 0 0 100%
src/galsbi/ucat/plugins/write_catalog.py Plugin.__str__ 1 1 0 0%
src/galsbi/ucat/plugins/write_catalog.py (no function) 11 0 0 100%
src/galsbi/ucat/plugins/write_catalog_photo.py get_ucat_catalog_filename 1 0 0 100%
src/galsbi/ucat/plugins/write_catalog_photo.py Plugin.__call__ 13 1 0 92%
src/galsbi/ucat/plugins/write_catalog_photo.py Plugin.__str__ 1 1 0 0%
src/galsbi/ucat/plugins/write_catalog_photo.py (no function) 10 0 0 100%
src/galsbi/ucat/sed_templates_util.py get_redshift_extinction_grid 6 0 0 100%
src/galsbi/ucat/sed_templates_util.py get_template_integrals 16 0 2 100%
src/galsbi/ucat/sed_templates_util.py store_sed_integrals 12 0 0 100%
src/galsbi/ucat/sed_templates_util.py load_sed_integrals 30 5 0 83%
src/galsbi/ucat/sed_templates_util.py load_sed_integrals.filter_name_back_compatibility 3 1 0 67%
src/galsbi/ucat/sed_templates_util.py load_template_spectra 11 1 0 91%
src/galsbi/ucat/sed_templates_util.py (no function) 12 0 0 100%
src/galsbi/ucat/spectrum_util.py spline_ext_coeff 4 0 0 100%
src/galsbi/ucat/spectrum_util.py extinction_coefficient 6 0 0 100%
src/galsbi/ucat/spectrum_util.py extinction_coefficient.uv_extinction 11 0 0 100%
src/galsbi/ucat/spectrum_util.py extinction_coefficient.uv_extinction.uv_curvature 5 0 0 100%
src/galsbi/ucat/spectrum_util.py construct_intrinsic_spectrum 2 0 0 100%
src/galsbi/ucat/spectrum_util.py apply_extinction 1 0 0 100%
src/galsbi/ucat/spectrum_util.py construct_reddened_spectrum 3 0 0 100%
src/galsbi/ucat/spectrum_util.py (no function) 7 0 0 100%
src/galsbi/ucat/utils.py memory_usage_psutil 1 0 0 100%
src/galsbi/ucat/utils.py (no function) 3 0 0 100%
Total   1887 58 2 97%

No items found using the specified filter.