v0.82.1
v0.82.1 | 22 Sep 2024
Notebooks
- Added notebook showing an example for
LongTermGapFillingRandomForestTS
(
notebooks/GapFilling/LongTermRandomForestGapFilling.ipynb
) - Added notebook example for
MeasurementOffset
(notebooks/Corrections/MeasurementOffset.ipynb
)
Tests
- Added unittest for
LongTermGapFillingRandomForestTS
(
tests.test_gapfilling.TestGapFilling.test_gapfilling_longterm_randomforest
) - Added unittest for
WindDirOffset
(tests.test_corrections.TestCorrections.test_winddiroffset
) - Added unittest for
DaytimeNighttimeFlag
(tests.test_createvar.TestCreateVar.test_daytime_nighttime_flag
) - Added unittest for
calc_vpd_from_ta_rh
(tests.test_createvar.TestCreateVar.test_calc_vpd
) - Added unittest for
percentiles101
(tests.test_analyses.TestAnalyses.test_percentiles
) - Added unittest for
GapFinder
(tests.test_analyses.TestAnalyses.test_gapfinder
) - Added unittest for
SortingBinsMethod
(tests.test_analyses.TestAnalyses.test_sorting_bins_method
) - Added unittest for
daily_correlation
(tests.test_analyses.TestAnalyses.test_daily_correlation
) - Added unittest for
QuantileXYAggZ
(tests.test_analyses.TestCreateVar.test_quantilexyaggz
) - 49/49 unittests ran successfully
Bugfixes
- Fixed bug that caused results from long-term gap-filling to be inconsistent despite using a fixed random state. I
found the following: when reducing features across years, the removal of duplicate features from a list of found
features created a list where the order of elements changed each run. This in turn produced slightly different
gap-filling results each time the long-term gap-filling was executed. Used Python version where this issue occurred
was3.9.19
.- Here is a simplified example, where
input_list
is a list of elements with some duplicate elements: - Running
output_list = list(set(input_list))
generatesoutput_list
where the elements would have a different
output order each run. The elements were otherwise the same, only their order changed. - To keep the order of elements consistent it was necessary to
output_list.sort()
. - (
diive.pkgs.gapfilling.longterm.LongTermGapFillingBase.reduce_features_across_years
)
- Here is a simplified example, where
- Corrected wind direction could be 360°, but will now be 0° (
diive.pkgs.corrections.winddiroffset.WindDirOffset._correct_degrees
)
What's Changed
Full Changelog: v0.82.0...v0.82.1