0.1.39
Loading...
Searching...
No Matches
pyhelios.WeberPennTree Namespace Reference

Classes

class  WeberPennTree
 
class  WeberPennTreeParameters
 Architectural parameters of a Weber-Penn tree, mirroring the C++ WeberPennTreeParameters struct. More...
 
class  WPTType
 

Functions

 is_weberpenntree_available ()
 Check if WeberPennTree plugin is available for use.
 
 _weberpenntree_working_directory ()
 Context manager that temporarily changes working directory to where WeberPennTree assets are located.
 

Variables

int _UINT32_MAX
 
int _MAX_LEVELS
 
tuple _PER_LEVEL_FLOAT_FIELDS
 
tuple _PER_LEVEL_INT_FIELDS
 
tuple _SCALAR_FLOAT_FIELDS
 
tuple _SCALAR_INT_FIELDS
 
tuple _SCALAR_UINT_FIELDS
 
tuple _STRING_FIELDS
 

Function Documentation

◆ _weberpenntree_working_directory()

pyhelios.WeberPennTree._weberpenntree_working_directory ( )
protected

Context manager that temporarily changes working directory to where WeberPennTree assets are located.

WeberPennTree C++ code uses hardcoded relative paths like "plugins/weberpenntree/xml/WeberPennTreeLibrary.xml" expecting assets relative to working directory. This manager temporarily changes to the build directory where assets are actually located.

Exceptions
RuntimeErrorIf build directory or WeberPennTree assets are not found, indicating a build system error.

Definition at line 66 of file WeberPennTree.py.

◆ is_weberpenntree_available()

pyhelios.WeberPennTree.is_weberpenntree_available ( )

Check if WeberPennTree plugin is available for use.

Returns
bool True if WeberPennTree can be used, False otherwise

Definition at line 36 of file WeberPennTree.py.

Variable Documentation

◆ _MAX_LEVELS

int pyhelios.WeberPennTree._MAX_LEVELS
protected

Definition at line 138 of file WeberPennTree.py.

◆ _PER_LEVEL_FLOAT_FIELDS

tuple pyhelios.WeberPennTree._PER_LEVEL_FLOAT_FIELDS
protected

Definition at line 144 of file WeberPennTree.py.

◆ _PER_LEVEL_INT_FIELDS

tuple pyhelios.WeberPennTree._PER_LEVEL_INT_FIELDS
protected

Definition at line 151 of file WeberPennTree.py.

◆ _SCALAR_FLOAT_FIELDS

tuple pyhelios.WeberPennTree._SCALAR_FLOAT_FIELDS
protected

Definition at line 155 of file WeberPennTree.py.

◆ _SCALAR_INT_FIELDS

tuple pyhelios.WeberPennTree._SCALAR_INT_FIELDS
protected

Definition at line 162 of file WeberPennTree.py.

◆ _SCALAR_UINT_FIELDS

tuple pyhelios.WeberPennTree._SCALAR_UINT_FIELDS
protected

Definition at line 166 of file WeberPennTree.py.

◆ _STRING_FIELDS

tuple pyhelios.WeberPennTree._STRING_FIELDS
protected

Definition at line 170 of file WeberPennTree.py.

◆ _UINT32_MAX

int pyhelios.WeberPennTree._UINT32_MAX
protected

Definition at line 134 of file WeberPennTree.py.