ogstools.ogs6py.referenced_file module#
- class ogstools.ogs6py.referenced_file.ReferencedFile[source]#
Bases:
BuildTree,StorageBaseRepresents a single file referenced by path in an OGS project file.
Initialize a StorageBase object.
- Parameters:
class_id – Type identifier for this saveable object (e.g., “Model”, “Simulation”).
file_ext – File extension if this is a file (e.g., “yaml”, “prj”). Empty string for directories.
default_target – Default path for saving if none is specified.
id – Unique identifier. If None, generates a timestamp-based ID.
- __init__(tree, xpath=None)[source]#
Initialize a StorageBase object.
- Parameters:
class_id – Type identifier for this saveable object (e.g., “Model”, “Simulation”).
file_ext – File extension if this is a file (e.g., “yaml”, “prj”). Empty string for directories.
default_target – Default path for saving if none is specified.
id – Unique identifier. If None, generates a timestamp-based ID.