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
I am trying to figure out why this fails in the branch remove-prodN-and-metadata , but I can't see that is going wrong:
pytest --model_version="6.0.0" --no-cov -n auto tests/integration_tests/test_applications_from_config.py::test_applications_from_config[simtools-simulate-light-emission_run-layout]
gives me
Starting run 1
INFO::utils(l161)::_init_num_threads::NumExpr defaulting to 10 threads.
INFO::eventsource(l163)::__init__::INPUT PATH = /tmp/pytest-of-root/pytest-7/popen-gw0/test-data0/simtools-simulate-light-emission-run-layout/simtools-tests/xyzls_layout.simtel.gz
INFO::eventsource(l166)::__init__::Max events being read = 1
INFO::provenance(l86)::_get_current_or_start_activity::No activity has been explicitly started, starting new default activity. Consider calling Provenance().start_activity(<name>) explicitly.
INFO::base(l61)::__init__::Opening new file /tmp/pytest-of-root/pytest-7/popen-gw0/test-data0/simtools-simulate-light-emission-run-layout/simtools-tests/xyzls_layout.simtel.gz
INFO::base(l71)::__init__::Found gzipped file
INFO::base(l74)::__init__::Trying to read using zcat
INFO::base(l84)::__init__::Using zcat
WARNING::simulate_light_emission(l450)::main::telescope not triggered at distance of 776.5919942930135 m
Traceback (most recent call last):
File "/workdir/env/bin/simtools-simulate-light-emission", line 8, in <module>
sys.exit(main())
^^^^^^
File "/workdir/external/simtools/simtools/applications/simulate_light_emission.py", line 452, in main
[fig],
^^^
UnboundLocalError: cannot access local variable 'fig' where it is not associated with a value
-------------------------------------------------------------------------- Captured log call ---------------------------------------------------------------------------
INFO root:test_applications_from_config.py:350 Temporary output path: /tmp/pytest-of-root/pytest-7/popen-gw0/test-data0/simtools-simulate-light-emission-run-layout
INFO root:test_applications_from_config.py:351 Test configuration from config file: {'APPLICATION': 'simtools-simulate-light-emission', 'TEST_NAME': 'run-layout', 'MODEL_VERSION_USE_CURRENT': True, 'CONFIGURATION': {'SITE': 'North', 'TELESCOPE': 'MSTN-04', 'ILLUMINATOR': 'ILLN-01', 'LIGHT_SOURCE_SETUP': 'layout', 'MODEL_VERSION': '6.0.0', 'LIGHT_SOURCE_TYPE': 'led', 'OUTPUT_PATH': 'simtools-tests', 'TELESCOPE_FILE': 'tests/resources/telescope_positions-North-ground.ecsv'}}
INFO root:test_applications_from_config.py:352 Model version: 6.0.0
The text was updated successfully, but these errors were encountered:
I am trying to figure out why this fails in the branch
remove-prodN-and-metadata
, but I can't see that is going wrong:gives me
The text was updated successfully, but these errors were encountered: