Diive

Latest version: v0.84.2

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 14 of 15

0.38.0

Optimum Range Detection

- New analysis: `pkgs.analyses.optimumrange.FindOptimumRange` finds the optimum for a
variable in binned other variable. This is useful for e.g. detecting the VPD
range where CO2 uptake was highest (=most negative).
![DIIVE](images/analysesOptimumRange_diive_v0.38.0.png)

0.37.0

Cumulative and Anomaly Plots

- New plot: `core.plotting.cumulative.CumulativeYear` plots cumulative sums per year
![DIIVE](images/plotCumulativeYear_diive_v0.37.0.png)
- New plot: `core.plotting.bar.LongtermAnomaliesYear` plots yearly anomalies in relation to a reference period
![DIIVE](images/plotBarLongtermAnomaliesYear_diive_v0.37.0.png)
- Refactored various code bits for plotting

0.36.0

Random Forest Update

- Refactored code for `pkgs/gapfilling/randomforest_ts.py`
- Implemented lagged variants of variables
- Implemented long-term gap-filling, where the model to gap-fill a specific year is built from the
respective year and its neighboring years
- Implemented feature reduction using sklearn's RFECV
- Implemented TimeSeriesSplit used as the cross-validation splitting strategy during feature reduction
- Implemented `TimestampSanitizer` also when reading from file with `core.io.filereader.DataFileReader`
- Removed old code in `.core.dfun.files` and moved files logistics to `.core.io.files` instead
- Implemented saving and loading Python `pickles` in `.core.io.files`

0.35.0

Meteoscreening PA, RH

- Added function `pkgs.corrections.offsetcorrection.remove_relativehumidity_offset` to correct
humidity measurements for values > 100%

Other

- Added first code for outlier detection via seasonal trends in `pkgs/outlierdetection/seasonaltrend.py`
- Prepared `pkgs/analyses/optimumrange.py` for future updates

0.34.0

MeteoScreening Radiation

MeteoScreening

- Implemented corrections and quality screening for radiation data in `pkgs.qaqc.meteoscreening`

Corrections

Additions to `pkgs.corrections`:

- Added function `.offsetcorrection.remove_radiation_zero_offset` to correct radiation
data for nighttime offsets
- Added function `.setto_threshold.setto_threshold` to set values above or below a
specfied threshold value to the threshold.

Plotting

- Added function `core.plotting.plotfuncs.quickplot` for quickly plotting pandas
Series and DataFrame data

Resampling

- Implemented `TimeSanitizer` in `core.times.resampling.resample_series_to_30MIN`

Other

- Added decorator class `core.utils.prints.ConsoleOutputDecorator`, a wrapper to
execute functions with additional info that is output to the console.

0.33.0

MeteoScreening Preparations

- Added new class `core.times.times.TimestampSanitizer`
- Class that handles timestamp checks and fixes, such as the creation of a continuous
timestamp without date gaps.
- Added `pkgs.createvar.nighttime_latlon.nighttime_flag_from_latlon`
- Function for the calculation of a nighttime flag (1=nighttime) from latitude and
longitude coordinates of a specific location.
- Added `core.plotting.heatmap_datetime.HeatmapDateTime`
- Class to generate a heatmap plot from timeseries data.

Page 14 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.