Skip to content

Commit adce1c3

Browse files
authored
Merge pull request #2739 from RuminantFarmSystems/removing-storage-strings
Fixing E2E for initiation of version update!
2 parents 2f73b6a + 8ff6ccf commit adce1c3

10 files changed

Lines changed: 14 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[![Flake8](https://img.shields.io/badge/Flake8-failed-red)](https://github.com/RuminantFarmSystems/MASM/actions/workflows/combined_format_lint_test_mypy.yml)
1+
[![Flake8](https://img.shields.io/badge/Flake8-passed-brightgreen)](https://github.com/RuminantFarmSystems/MASM/actions/workflows/combined_format_lint_test_mypy.yml)
22
[![Pytest](https://img.shields.io/badge/Pytest-passed-brightgreen)](https://github.com/RuminantFarmSystems/MASM/actions/workflows/combined_format_lint_test_mypy.yml)
33
[![Coverage](https://img.shields.io/badge/Coverage-99%25-brightgreen)](https://github.com/RuminantFarmSystems/MASM/actions/workflows/combined_format_lint_test_mypy.yml)
4-
[![Mypy](https://img.shields.io/badge/Mypy-1685%20errors-red)](https://github.com/RuminantFarmSystems/MASM/actions/workflows/combined_format_lint_test_mypy.yml)
4+
[![Mypy](https://img.shields.io/badge/Mypy-1683%20errors-red)](https://github.com/RuminantFarmSystems/MASM/actions/workflows/combined_format_lint_test_mypy.yml)
55

66

77
# RuFaS: Ruminant Farm Systems

RUFAS/biophysical/manure/storage/anaerobic_lagoon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def process_manure(self, current_day_conditions: CurrentDayConditions, time: Ruf
106106
)
107107
self._report_processor_output(
108108
"outdoor_storage_manure_temperature",
109-
str(manure_temperature),
109+
manure_temperature,
110110
function_name,
111111
MeasurementUnits.DEGREES_CELSIUS,
112112
time.simulation_day,

RUFAS/biophysical/manure/storage/slurry_storage_outdoor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def process_manure(self, current_day_conditions: CurrentDayConditions, time: Ruf
8080
units = MeasurementUnits.KILOGRAMS
8181
self._report_processor_output(
8282
"outdoor_storage_manure_temperature",
83-
str(manure_temperature),
83+
manure_temperature,
8484
data_origin_name,
8585
MeasurementUnits.DEGREES_CELSIUS,
8686
time.simulation_day,

RUFAS/data_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def _metadata_object_validator(self, key_path: list[str], value: dict[str, Any])
641641
return valid, message
642642
return True, ""
643643

644-
def validate_metadata(
644+
def validate_metadata( # noqa: C901
645645
self,
646646
metadata: dict[str, Any],
647647
valid_data_types: set[str],

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ v0.9.2
302302
- [2608](https://github.com/RuminantFarmSystems/MASM/pull/2608) - [minor change] [InputChange][OutputChange][Animal] Implements the Genetics submodule.
303303
- [2705](https://github.com/RuminantFarmSystems/MASM/pull/2705) - [minor change] [InputChange][OutputChange][e2e-testing] Fix end to end testing for the new emission files.
304304
- [2732](https://github.com/RuminantFarmSystems/RuFaS/pull/2732) - [minor change] [NoInputChange] [NoOutputChange] Skip Animal module and Manure module if no animals are present in simulation.
305+
- [2739](https://github.com/RuminantFarmSystems/RuFaS/pull/2739) - [minor change] [NoInputChange] [NoOutputChange] Fixes manure outputs and updates E2E expected results accordingly.
306+
305307
### v0.9.2
306308

307309
- [1968](https://github.com/RuminantFarmSystems/MASM/pull/1968) - [minor change] [Changelog] Move the changelog from a Google sheet into a markdown document in the repository.

input/data/end_to_end_testing/freestall/e2e_json_manure_filter.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

input/data/end_to_end_testing/no_animal/e2e_json_manure_filter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"filters": [
44
"Manure.*"
55
],
6-
"expected_results_last_updated": "07-Feb-2026_Sat_00-12-46",
6+
"expected_results_last_updated": "09-Feb-2026_Mon_18-36-15",
77
"expected_results": {"DISCLAIMER":"Under construction, use the results with caution.","EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2013_124_field_1":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2013_124_field_1":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2013_124_field_1":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2013_124_field_1":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2013_124_field_1":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2013_124_field_1":{"values":[11939.038999999999]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2013_124_field_1":{"values":[4.367977371524996]},"EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2014_311_field_1":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2014_311_field_1":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2014_311_field_1":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2014_311_field_1":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2014_311_field_1":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2014_311_field_1":{"values":[17919.013]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2014_311_field_1":{"values":[6.555790906124207]},"EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2015_311_field_1":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2015_311_field_1":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2015_311_field_1":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2015_311_field_1":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2015_311_field_1":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2015_311_field_1":{"values":[17919.013]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2015_311_field_1":{"values":[6.555790906124207]},"EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2016_311_field_1":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2016_311_field_1":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2016_311_field_1":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2016_311_field_1":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2016_311_field_1":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2016_311_field_1":{"values":[17919.013]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2016_311_field_1":{"values":[6.555790906124207]},"EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2013_124_field_2":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2013_124_field_2":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2013_124_field_2":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2013_124_field_2":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2013_124_field_2":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2013_124_field_2":{"values":[11939.038999999999]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2013_124_field_2":{"values":[4.367977371524996]},"EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2014_311_field_2":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2014_311_field_2":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2014_311_field_2":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2014_311_field_2":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2014_311_field_2":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2014_311_field_2":{"values":[17919.013]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2014_311_field_2":{"values":[6.555790906124207]},"EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2015_311_field_2":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2015_311_field_2":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2015_311_field_2":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2015_311_field_2":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2015_311_field_2":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2015_311_field_2":{"values":[17919.013]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2015_311_field_2":{"values":[6.555790906124207]},"EnergyEstimator.estimate_all.tractor_size_for_Manure Application_2016_311_field_2":{"values":["Small"]},"EnergyEstimator.estimate_all.operation_event_for_Manure Application_2016_311_field_2":{"values":["Manure Application"]},"EnergyEstimator.estimate_all.herd_size_for_Manure Application_2016_311_field_2":{"values":[100]},"EnergyEstimator.estimate_all.field_production_size_for_Manure Application_2016_311_field_2":{"values":[10.0]},"EnergyEstimator.estimate_all.application_depth_for_Manure Application_2016_311_field_2":{"values":[30.0]},"EnergyEstimator.estimate_all.application_mass_Manure Application_2016_311_field_2":{"values":[17919.013]},"EnergyEstimator.estimate_all.diesel_consumption_for_Manure Application_2016_311_field_2":{"values":[6.555790906124207]}}
88
}

input/data/end_to_end_testing/open_lot/e2e_json_manure_filter.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

tests/test_biophysical/test_manure/test_storage/test_anaerobic_lagoon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def mock_process_manure_side_effect(_: CurrentDayConditions, __: RufasTime) -> d
166166
call("storage_methane", 2.0, "process_manure", MeasurementUnits.KILOGRAMS, dummy_time.simulation_day),
167167
call(
168168
"outdoor_storage_manure_temperature",
169-
str(25.0),
169+
25.0,
170170
"process_manure",
171171
MeasurementUnits.DEGREES_CELSIUS,
172172
dummy_time.simulation_day,

tests/test_biophysical/test_manure/test_storage/test_slurry_storage_outdoor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def process_manure_side_effect(_: CurrentDayConditions, __: RufasTime) -> dict[s
181181
assert mock_report_processor_output.call_args_list == [
182182
call(
183183
"outdoor_storage_manure_temperature",
184-
str(dummy_manure_temperature),
184+
dummy_manure_temperature,
185185
expected_data_origin_name,
186186
MeasurementUnits.DEGREES_CELSIUS,
187187
dummy_time.simulation_day,

0 commit comments

Comments
 (0)