Skip to content

Commit

Permalink
Tests and Chandelog update
Browse files Browse the repository at this point in the history
  • Loading branch information
caio-ramos committed Jan 2, 2025
1 parent 3be7afc commit 175f770
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CHANGELOG
* We have decided internally to revert the versioning schema back to SemVer, starting at ``1.0.0``, in order to improve better backward and forward compatibility support for plugins.
* Fix bug related to Probabilistic History Matching result reader. The shape of result was wrong.
* Add the heat transfer mechanism for fluid materials composed by a parcel of radiation and convection.
* Add the PvtModelConstantPropertiesDescription: This model is used to define the PVT properties of the fluid as a table with constant values.
* Changed the constructor of result metadata objects in ``alfasim_sdk.result_reader.aggregator`` from ``attr`` to ``dataclasses.dataclass`` to make then more easily integrated into the (de)serialization engine of popular packages such as ``pyserde`` and ``pydantic``.
* Changed function ``read_global_sensitivity_coefficients`` and ``read_uncertainty_propagation_results`` to accept multiple keys so it can perform bulk reads without having to open the result file every time.
* Added ``GlobalSensitivityAnalysisResults``, ``HistoryMatchingDeterministicResults``, ``HistoryMatchingProbabilisticResults`` and ``UncertaintyPropagationResults``, which are objects to read and interact with the Uncertainty Quantification analyses results in a more user-friendly way.
Expand Down
5 changes: 5 additions & 0 deletions tests/alfacase/test_alfacase_to_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ def ensure_description_has_all_properties(
schema=schema.pvt_model_correlation_description_schema,
is_dict=True,
),
"PvtModelConstantPropertiesDescription": AlfacaseTestConfig(
description_expected=filled_case_descriptions.PVT_MODEL_CONST_TABLE_DEFINITION,
schema=schema.pvt_model_constant_properties_description_schema,
is_dict=True,
),
"LinearIPRDescription": AlfacaseTestConfig(
description_expected=filled_case_descriptions.LINEAR_IPR_DESCRIPTION,
schema=schema.linear_ipr_description_schema,
Expand Down
4 changes: 4 additions & 0 deletions tests/alfacase/test_case_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ def default_case(tmp_path) -> case_description.CaseDescription:
ph_table_parameters={
"PVT5": case_description.PvtModelPhTableParametersDescription.create_empty()
},
constant_properties={
"PVT6": case_description.PvtModelConstantPropertiesDescription()
},
)
)

Expand Down Expand Up @@ -1510,6 +1513,7 @@ def test_check_fluid_references(default_well: case_description.WallDescription)
"pt_table_parameters",
"ph_table_parameters",
"tables",
"constant_properties",
}

case = case_description.CaseDescription(
Expand Down

0 comments on commit 175f770

Please sign in to comment.