Coverage for src/ufig/config/test_config_adv.py: 100%
17 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-12 19:08 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-12 19:08 +0000
1import os
3from cosmo_torrent import data_path
4from ivy.loop import Loop
6import ufig.config.common
7from ufig.workflow_util import FiltersStopCriteria
9# Import all common settings from ucat and ufig
10for name in [name for name in dir(ufig.config.common) if not name.startswith("__")]:
11 globals()[name] = getattr(ufig.config.common, name)
14pixscale = 0.168
15size_x = 1000
16size_y = 1000
17ra0 = 0
18dec0 = 0
20# Define the filters
21filters = ["g", "r", "i"]
22filters_full_names = {
23 "B": "SuprimeCam_B",
24 "g": "HSC_g",
25 "r": "HSC_r2",
26 "i": "HSC_i2",
27}
29# Define the plugins that should be used
30plugins = [
31 "ufig.plugins.multi_band_setup",
32 "ufig.plugins.draw_stars_besancon_map",
33 Loop(
34 [
35 "ufig.plugins.single_band_setup",
36 "ufig.plugins.background_noise",
37 "ufig.plugins.resample",
38 "ufig.plugins.add_psf",
39 "ufig.plugins.render_stars_photon",
40 "ufig.plugins.convert_photons_to_adu",
41 "ufig.plugins.saturate_pixels",
42 "ufig.plugins.write_image",
43 ],
44 stop=FiltersStopCriteria(),
45 ),
46 "ivy.plugin.show_stats",
47]
49star_catalogue_type = "besancon_map"
50besancon_map_path = os.path.join(data_path("besancon_HSC"), "besancon_HSC.h5")