GUIBRUSHR.General_Constants.Classes.Target module¶
- class GUIBRUSHR.General_Constants.Classes.Target.TargetParameters[source]¶
Bases:
objectData class to store target parameters with default values.
- __init__() None¶
- class GUIBRUSHR.General_Constants.Classes.Target.Target(path_target_file: str | Path | None = None, rad_mode: str = 'Transmission')[source]¶
Bases:
objectA class representing a target object with various physical and orbital parameters.
This class handles loading and managing target parameters from either CSV or YAML files. It supports both transmission and emission radiation modes.
- radiation_mode¶
The radiation mode of the target (“Transmission” or “Emission”)
- Type:
str
- __init__(path_target_file: str | Path | None = None, rad_mode: str = 'Transmission') None[source]¶
Initialize a Target object.
- Parameters:
path_target_file – Path to the target parameter file (CSV or YAML)
rad_mode – Radiation mode (“Transmission” or “Emission”)
- Raises:
ValueError – If radiation mode is invalid
FileNotFoundError – If target file doesn’t exist
ValueError – If file format is invalid or required parameters are missing