Replies: 3 comments 1 reply
-
Hi Tristan, Thanks for your interest in Helios. We currently don't have a Python API for Helios. There may be plans to move ahead with this in the next year or so, but not at the moment. Here are a few ideas in the meantime:
Those are some initial thoughts, short of implementing a full API. Then perhaps in the next year or so we might have a full comprehensive API. PyHeliosPython bindings for Helios For complete documentation of this software, please consult https://baileylab.ucdavis.edu/software/helios, or open the file doc/example folder for usage examples. Warning: This library only works on Windows x64-based systems Installation
$ pip install -e . Usage
from pyhelios import Context
from pyhelios import DataTypes
context = Context()
center = DataTypes.Vec3(2, 3, 4)
size = DataTypes.Vec2(1, 1)
color = DataTypes.RGBcolor(0.25, 0.25, 0.25)
patch_uuid = context.add_patch(
center=center,
size=size,
color=color
)
from pyhelios import Context, WeberPennTree, WPTType
context = Context()
wpt = WeberPennTree(context)
tree_id_lemon = wpt.build_tree(WPTType.LEMON)
tree_id_olive = wpt.build_tree(WPTType.OLIVE) |
Beta Was this translation helpful? Give feedback.
-
On second thought, looking through what we have already for PyHelios, I think I could put together something working pretty quickly. This would be a nice thing to have in general. I will put something together and make the PyHelios repo public once I have a minimal working framework that's verified to work. |
Beta Was this translation helpful? Give feedback.
-
Tristan, The PyHelios repo is now live: https://github.com/PlantSimulationLab/PyHelios It has basic documentation here: https://plantsimulationlab.github.io/PyHelios It should work on all platforms, and have basic functionality for radiation model integration. For now you need to compile the core Helios C++ library using the build script, as detailed in the documentation. In the near future I plan to have pre-built distributions so you don't have to do this part. The key ways I anticipate it will interface through your code will be:
Two good examples to look at are in I would recommend to familiarize yourself with the Helios C++ usage, as the documentation is more complete and using PyHelios is almost exactly the same. The YouTube tutorials also show how to build the C++ code (if you have trouble with the automated scripts) and how to do basic radiation simulations. I will continue to add functionality. The code is likely to change quickly and may not be backward compatible until v1.0, so check |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm reaching out being interested in using Helios Radiation Model within our python based FSPM modeling platform, OpenAlea. In this platform we mainly use the C++ Caribu light model but it is not maintained and there is no proper python API, everything is file i/o on disk which makes it very slow, so that everybody only use it with only direct interception to save computation time.
This is why I am willing to use Helios instead and I am wondering if you might have guidelines to build an API that would effitiently exchange triangles sets, scene parameters and return PARa and energy, for the whole spectrum as a first step.
Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions