You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
In the new master branch (soon in pypi too) the problem should be solved. Any filter in the SVO database should be available as well as in the speXtra database where I also placed MICADO, METIS and other ESO filters.
Running this will produce a all-None list for spectra. This is also in the final returned Source object's .spectra attribute. Meaning this cluster() function is currently still broken.
These lines in
clusters.py
cause quite some warnings that the fileV
cannot be found:ScopeSim_Templates/scopesim_templates/stellar/clusters.py
Lines 86 to 87 in dc42d52
In particular, it raises an error when
!SIM.file.error_on_missing_file
is true:There is a
V.dat
inLFOA/filters
, but the error remains when adding that directory toscopesim.rc.__search_path__
because the.dat
is not appended.Is it possible to prevent this warning / error?
The text was updated successfully, but these errors were encountered: