File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def load_ort_data(filepath: str) -> Union[Data, list[Data]]:
2020
2121 Returns
2222 -------
23- Data | list[Data]
23+ Data or list[Data]
2424 If the .ort file contains one dataset, just the data model.
2525 If it contains multiple datasets, returns a list of data models.
2626
@@ -102,11 +102,11 @@ class ORSOSample:
102102 bulk_in : Parameter
103103 bulk_out : Parameter
104104 parameters : ClassList [Parameter ]
105- layers : ClassList [Layer ] | ClassList [AbsorptionLayer ]
105+ layers : Union [ ClassList [Layer ], ClassList [AbsorptionLayer ] ]
106106 model : list [str ]
107107
108108
109- def orso_model_to_rat (model : orsopy .fileio .model_language .SampleModel | str , absorption : bool = False ) -> ORSOSample :
109+ def orso_model_to_rat (model : Union [ orsopy .fileio .model_language .SampleModel , str ] , absorption : bool = False ) -> ORSOSample :
110110 """Get information from an ORSO SampleModel object.
111111
112112 Parameters
You can’t perform that action at this time.
0 commit comments