pytroll / pytroll-pps-runner

Pytroll runner for PPS
GNU General Public License v3.0
1 stars 8 forks source link

level 1c runner crashes when wrong formated platform name arrives. Bug or feature? #37

Open TAlonglong opened 2 years ago

TAlonglong commented 2 years ago

level 1c runner crashes when wrong formated platform name arrives. Bug or feature?

Traceback (most recent call last):
  File "/software/miniconda/envs/ppsv2021/bin/level1c_runner.py", line 4, in <module>
    __import__('pkg_resources').run_script('nwcsafpps-runner==0.2.2.dev92+ga744cb8.d20211125', 'level1c_runner.py')
  File "/software/miniconda/envs/ppsv2021/lib/python3.7/site-packages/pkg_resources/__init__.py", line 656, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/software/miniconda/envs/ppsv2021/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1453, in run_script
    exec(code, namespace, namespace)
  File "/data/software/miniconda/envs/ppsv2021/lib/python3.7/site-packages/nwcsafpps_runner-0.2.2.dev92+ga744cb8.d20211125-py3.7.egg/EGG-INFO/scripts/level1c_runner.py", line 136, in <module>
    l1c_runner(CONFIG_FILENAME, SERVICE_NAME)
  File "/data/software/miniconda/envs/ppsv2021/lib/python3.7/site-packages/nwcsafpps_runner-0.2.2.dev92+ga744cb8.d20211125-py3.7.egg/EGG-INFO/scripts/level1c_runner.py", line 88, in l1c_runner
    _run_subscribe_publisher(l1c_proc, service_name, sub, pub)
  File "/data/software/miniconda/envs/ppsv2021/lib/python3.7/site-packages/nwcsafpps_runner-0.2.2.dev92+ga744cb8.d20211125-py3.7.egg/EGG-INFO/scripts/level1c_runner.py", line 61, in _run_subscribe_publish
er
    l1c_proc.run(msg)
  File "/data/software/miniconda/envs/ppsv2021/lib/python3.7/site-packages/nwcsafpps_runner-0.2.2.dev92+ga744cb8.d20211125-py3.7.egg/nwcsafpps_runner/l1c_processing.py", line 120, in run
    self.check_platform_name_consistent_with_service()
  File "/data/software/miniconda/envs/ppsv2021/lib/python3.7/site-packages/nwcsafpps_runner-0.2.2.dev92+ga744cb8.d20211125-py3.7.egg/nwcsafpps_runner/l1c_processing.py", line 159, in check_platform_name_c
onsistent_with_service
    raise PlatformNameInconsistentWithService(errmsg)
nwcsafpps_runner.l1c_processing.PlatformNameInconsistentWithService: ('%s: Platform name not supported for this service: %s', 'metop01', 'avhrr-l1c')