Skip to content

Releases: ThibHlln/eflowcalc

v0.1.0

26 Apr 17:06
ab64178
Compare
Choose a tag to compare

API changes:

  • calculator now supports any array-like object, e.g. numpy.array, list
  • calculator now returns an array with the same number of dimensions as streamflow input array

Tests:

  • add unittest test suite to check that new commits do not change results
  • add doctest tests to check that the API as presented in the docs is working
  • add GitHub workflow

Documentation:

  • add a documentation website generated with Sphinx

v0.0.3

08 Sep 08:47
Compare
Choose a tag to compare

Algorithm Enhancements:

  • checks for the format of the keyword argument 'hydro_year' in Calculator to make sure it is a valid 2-digit day/2-digit month format
  • adds a conditional statement on the return of Calculator to send back the output array in the same orientation as the input streamflow array
  • for dl19: deals with zero divide issues and returns zeros in place of NaNs when the denominator is null
  • for fl3: deals with empty slice issues and replaces NaN values by zeros when the slice is empty and avoids raising unnecessary warnings
  • for count_reversal: deals with special case where the null difference happens at the very beginning of the period, where NaN values were forward replaced (i.e. null difference) as long as the difference remained null. Now, after forward replacing, it backward replaces these NaN values for this special case at the beginning of the period if necessary

Bug fixes:

  • removes hard coded month and year of start of hydrological year that prevented Calculator from honouring the use of its keyword argument 'hydro_year' (if a value different from '01/10' was required)
  • for count_reversal function: corrects error on the array index used to replace null difference by the most recent non-null value (low likelihood of having produced numerically erroneous outputs without running into an exception first with previous versions of EFlowCalc though)

Documentation fixes:

  • updates the tutorial notebook to correct typos

v0.0.2

16 Feb 08:42
Compare
Choose a tag to compare

Semantics Enhancements:

Functionality Enhancements:

  • adds possibility to select specific years where to calculate the SFCs using the keyword argument years
  • adds gathering functions for each flow category (magnitude, frequency, timing, duration, rate_change) and for all SFCs (everything)

Algorithm Enhancements:

  • adds single-sourcing package version
  • changes default array orientation
  • changes the degrees of freedom to n-1 in calculation of std (breaking backwards compatibility)

v0.0.1

26 Oct 09:54
Compare
Choose a tag to compare
updates copyright headers