-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
These lines in clusters.py cause quite some warnings that the file V cannot be found:
ScopeSim_Templates/scopesim_templates/stellar/clusters.py
Lines 86 to 87 in dc42d52
| # 4. scale all spectra to V=0 | |
| spectra = [tcu.scale_spectrum(spec, "V", 0*u.mag) for spec in spectra] |
In particular, it raises an error when !SIM.file.error_on_missing_file is true:
Traceback (most recent call last):
File "/builds/micado/micadowise/notebooks/FullStandardImaging.py", line 255, in <module>
science3.make_simulation()
File "/builds/micado/micadowise/src/micado/main/RawExtra.py", line 106, in make_simulation
src = src_function()
File "/home/micado/.conda/envs/micadowise/lib/python3.10/site-packages/scopesim_templates/calibration/micado/cluster.py", line 7, in cluster
return scopesim_templates.stellar.clusters.cluster(mass=10000, distance=2000, core_radius=.1)
File "/home/micado/.conda/envs/micadowise/lib/python3.10/site-packages/astropy/utils/decorators.py", line 546, in wrapper
return function(*args, **kwargs)
File "/home/micado/.conda/envs/micadowise/lib/python3.10/site-packages/scopesim_templates/stellar/clusters.py", line 82, in cluster
spectra = [tcu.scale_spectrum(spec, "V", 0*u.mag) for spec in spectra]
File "/home/micado/.conda/envs/micadowise/lib/python3.10/site-packages/scopesim_templates/stellar/clusters.py", line 82, in <listcomp>
spectra = [tcu.scale_spectrum(spec, "V", 0*u.mag) for spec in spectra]
File "/home/micado/.conda/envs/micadowise/lib/python3.10/site-packages/scopesim/effects/ter_curves_utils.py", line 302, in scale_spectrum
filt = get_filter(filter_name)
File "/home/micado/.conda/envs/micadowise/lib/python3.10/site-packages/scopesim/effects/ter_curves_utils.py", line 168, in get_filter
path = find_file(filter_name, silent=True)
File "/home/micado/.conda/envs/micadowise/lib/python3.10/site-packages/scopesim/utils.py", line 573, in find_file
raise ValueError(msg)
ValueError: File cannot be found: V
There is a V.dat in LFOA/filters, but the error remains when adding that directory to scopesim.rc.__search_path__ because the .dat is not appended.
Is it possible to prevent this warning / error?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🏗 In progress