No such command 'annual-irradiance' in 1.2.0

Hi @chris,

I noticed the change from annual radiation to annual irradiance in this commit.

Using the updated component, I get the error No such command ‘annual-irradiance’ from the CalculateMetrics part of the recipe:

Expand for debug text
...
2021-07-02 12:14:26 DEBUG: Done
2021-07-02 12:14:26 DEBUG: There are no more tasks to run at this time
2021-07-02 12:14:26 DEBUG: CalculateMetrics___grid_filter____55822606a0 is currently run by worker Worker(salt=984168678, workers=6, host=L13943, username=909305, pid=28156)
2021-07-02 12:14:26 INFO: Usage: honeybee-radiance post-process [OPTIONS] COMMAND [ARGS]...
2021-07-02 12:14:26 INFO: Try 'honeybee-radiance post-process --help' for help.
2021-07-02 12:14:26 INFO: 
2021-07-02 12:14:26 INFO: Error: No such command 'annual-irradiance'.
2021-07-02 12:14:27 ERROR: 

Failed task: CalculateMetrics.
Run the command with --debug key to debug the workflow.


2021-07-02 12:14:27 ERROR: [pid 7216] Worker Worker(salt=984168678, workers=6, host=L13943, username=909305, pid=28156) failed    CalculateMetrics(_input_params={"grid_filter": "*", "model": "Model.hbjson", "north": 0.0, "params_folder": "__params", "radiance_parameters": "-aa 0.25 -ab 3 -ad 5000 -ar 16 -as 128 -c 1 -dc 0.25 -dj 0.0 -dp 64 -dr 0 -ds 0.5 -dt 0.5 -lr 4 -lw 2e-06 -ss 0.0 -st 0.85", "sensor_count": 200, "simulation_folder": "C:/Users/909305/simulation/Model/annual_irradiance", "timestep": 1, "wea": "AMSTERDAM.wea"})
Traceback (most recent call last):
  File "c:\users\909305\ladybug_tools\python\lib\site-packages\luigi\worker.py", line 191, in run
    new_deps = self._run_get_new_deps()
  File "c:\users\909305\ladybug_tools\python\lib\site-packages\luigi\worker.py", line 133, in _run_get_new_deps
    task_gen = self.task.run()
  File "c:\users\909305\ladybug_tools\python\lib\site-packages\queenbee_local\__init__.py", line 230, in run
    raise ValueError(err_msg)
ValueError: 

Failed task: CalculateMetrics.
Run the command with --debug key to debug the workflow.


2021-07-02 12:14:27 INFO: Informed scheduler that task   CalculateMetrics___grid_filter____55822606a0   has status   FAILED
2021-07-02 12:14:27 DEBUG: Asking scheduler for work...
2021-07-02 12:14:27 DEBUG: Done
2021-07-02 12:14:27 DEBUG: There are no more tasks to run at this time
2021-07-02 12:14:27 DEBUG: There are 3 pending tasks possibly being run by other workers
2021-07-02 12:14:27 DEBUG: There are 3 pending tasks unique to this worker
2021-07-02 12:14:27 DEBUG: There are 3 pending tasks last scheduled by this worker
2021-07-02 12:14:27 INFO: Worker Worker(salt=984168678, workers=6, host=L13943, username=909305, pid=28156) was stopped. Shutting down Keep-Alive thread
2021-07-02 12:14:27 INFO: 
===== Luigi Execution Summary =====

Scheduled 35 tasks of which:
* 32 ran successfully:
    - 1 AnnualIrradianceRaytracing(...)
    - 1 AnnualIrradianceRaytracingLoop(...)
    - 1 CopyGridInfo(...)
    - 1 CopySunUpHours(...)
    - 1 CreateDirectSky(...)
    ...
* 1 failed:
    - 1 CalculateMetrics(...)
* 2 were left pending, among these:
    * 2 had failed dependencies:
        - 1 LetAnnualIrradianceFly(...)
        - 1 _Main_f2191600Orchestrator(...)

This progress looks :( because there were failed tasks

===== Luigi Execution Summary =====


Exception ignored in: <finalize object at 0x25599c14ee0; dead>
Traceback (most recent call last):
  File "c:\users\909305\ladybug_tools\python\lib\weakref.py", line 572, in __call__
    return info.func(*info.args, **(info.kwargs or {}))
  File "c:\users\909305\ladybug_tools\python\lib\tempfile.py", line 797, in _cleanup
    _shutil.rmtree(name)
  File "c:\users\909305\ladybug_tools\python\lib\shutil.py", line 516, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "c:\users\909305\ladybug_tools\python\lib\shutil.py", line 404, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "c:\users\909305\ladybug_tools\python\lib\shutil.py", line 402, in _rmtree_unsafe
    os.rmdir(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\909305\\AppData\\Local\\Temp\\tmp1yx5drsm'

Runtime error (ValueErrorException): Invalid result folder: C:\Users\909305\simulation\Model\annual_irradiance\metrics/average_irradiance

Traceback:
  line 22, in read_sensor_grid_result, "C:\Users\909305\ladybug_tools\python\Lib\site-packages\pollination_handlers\outputs\helper.py"
  line 15, in read_pit_from_folder, "C:\Users\909305\ladybug_tools\python\Lib\site-packages\pollination_handlers\outputs\daylight.py"
  line 517, in value, "C:\Users\909305\ladybug_tools\python\Lib\site-packages\lbt_recipes\recipe.py"
  line 314, in output_value_by_name, "C:\Users\909305\ladybug_tools\python\Lib\site-packages\lbt_recipes\recipe.py"

line 95, in script

I have Radiance 5.4a installed. With 5.3 I got the error of not having a recent enough version.

Any idea what the problem is?

Kind regards,
Marc

Yes, @marctavenier. Sorry that our continuous integration system hit a hiccup and caused the latest LBT core libraries to be out of sync with the latest Grasshopper components.

Everything should be fixed now if you rerun the “LB Versioner” and try running the recipe again.

1 Like