report.Delta#
- class Delta#
Bases:
Flow360BaseModelRepresents a delta calculation between a reference case and a target case based on specified data.
Attributes
- ref_index: int, optional#
Index of the reference case in the list of cases for comparison.
- Default:
0
Properties
- include#
Returns the include filter from the underlying DataItem, or None if data is not a DataItem.
- exclude#
Returns the exclude filter from the underlying DataItem, or None if data is not a DataItem.
Additional Constructors
- classmethod from_file(filename)#
Loads a
Flow360BaseModelfrom .json, or .yaml file.- Parameters:
filename (str) – Full path to the .yaml or .json file to load the
Flow360BaseModelfrom.- Returns:
An instance of the component class calling load.
- Return type:
Flow360BaseModel
Example
>>> params = Flow360BaseModel.from_file(filename='folder/sim.json')
Methods
- calculate(case, cases)#
Calculates the delta between the specified case and the reference case.
- Parameters:
- Returns:
The computed delta value between the case and reference case data.
- Return type:
- Raises:
ValueError – If ref_index is out of bounds or None, indicating a missing reference.
- help(methods=False)#
Prints message describing the fields and methods of a
Flow360BaseModel.- Parameters:
methods (bool = False) – Whether to also print out information about object’s methods.
- Return type:
None
Example
>>> params.help(methods=True)