-
Type:
Bug
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:1
When running the simulator, eg with the command:
makeSim --visit 47 --detector r1 --pfsDesignId 1 --exptime 1800 --type object
The simulator fails with the following error:
Traceback (most recent call last): File "/tigress/HSC/PFS/stack/current/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/tigress/HSC/PFS/stack/current/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/tigress/hassans/software/drp_instmodel/python/pfs/instmodel/makeSim.py", line 308, in <module> main() File "/tigress/hassans/software/drp_instmodel/python/pfs/instmodel/makeSim.py", line 275, in main logger=logger) File "/tigress/hassans/software/drp_instmodel/python/pfs/instmodel/makeSim.py", line 88, in makeSim spectra = [source.getSpectrum(fiberId) for fiberId in fibers] File "/tigress/hassans/software/drp_instmodel/python/pfs/instmodel/makeSim.py", line 88, in <listcomp> spectra = [source.getSpectrum(fiberId) for fiberId in fibers] File "/tigress/hassans/software/drp_instmodel/python/pfs/instmodel/lightSource.py", line 164, in getSpectrum target = self.getTargetData(fiberId) File "/tigress/hassans/software/drp_instmodel/python/pfs/instmodel/lightSource.py", line 216, in getTargetData assert len(index) == 1 TypeError: object of type 'int' has no len()