Skip to content

Error Radiation plugin need to call buildAccelerationStructure() first #7

Description

@revesansparole

Bonjour,

Environment

Windows 10 pro
Graphics card: NVIDIA T550 laptop GPU

I just installed pyHelios in an empty conda env (using pip install pyhelios3d):

  • pyhelios3d 0.1.25 pypi_0 pypi
  • python 3.14.6 h4b44e0e_100_cp314 conda-forge
  • numpy 2.5.0 pypi_0 pypi

GPU information from "testing GPU feature" in https://plantsimulationlab.github.io/PyHelios/index.html#GettingStarted:

Radiation model initialized with OptiX 8.1 backend.
GPU radiation modeling available!
INFO (EnergyBalanceModel): GPU acceleration enabled (1 device(s) found).
EnergyBalance using GPU acceleration

How to reproduce the problem

I just launched the "basic usage" script in https://plantsimulationlab.github.io/PyHelios/RadiationDoc.html
I get this error:
Could not set asset path for plugin: solarposition
Radiation model initialized with OptiX 8.1 backend.
Updating radiative properties...done
Performing primary direct radiation ray trace for bands PAR, ...Traceback (most recent call last):
File "C:\Users\jchopard\Documents\eval\helios\eval_radiationi.py", line 26, in
radiation.runBand("PAR")
~~~~~~~~~~~~~~~~~^^^^^^^
File "C:\Users\jchopard\miniconda3\envs\helios\Lib\site-packages\pyhelios\plugins\registry.py", line 280, in wrapper
return func(*args, **kwargs)
File "C:\Users\jchopard\miniconda3\envs\helios\Lib\site-packages\pyhelios\validation\plugin_decorators.py", line 139, in wrapper
return func(self, band_label, *args, **kwargs)
File "C:\Users\jchopard\miniconda3\envs\helios\Lib\site-packages\pyhelios\RadiationModel.py", line 1265, in runBand
radiation_wrapper.runBand(self.radiation_model, band_label)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jchopard\miniconda3\envs\helios\Lib\site-packages\pyhelios\wrappers\URadiationModelWrapper.py", line 1056, in runBand
helios_lib.runRadiationBand(radiation_model, label_encoded)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jchopard\miniconda3\envs\helios\Lib\site-packages\pyhelios\wrappers\URadiationModelWrapper.py", line 27, in _check_error
check_helios_error(helios_lib.getLastErrorCode, helios_lib.getLastErrorMessage, helios_lib.clearError)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jchopard\miniconda3\envs\helios\Lib\site-packages\pyhelios\exceptions.py", line 148, in check_helios_error
raise create_exception_from_error_code(error_code, error_message)
pyhelios.exceptions.HeliosRuntimeError: Helios error 7: ERROR (RadiationModel::runBand): ERROR (OptiX8Backend::launchDirectRays): No acceleration structure. Call buildAccelerationStructure() first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions