CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 17
Releases: hydpy-dev/hydpy
HydPy 6.1.5
Compare
As discussed in issue #168, HydPy-Musk-MCT's behaviour for negative inflow was previously left to chance to some extent. Starting with HydPy 6.1.5, it is always well-defined and configurable by users who wish to have complete control over situations where the occurrence of negative inflow values cannot be excluded.
Additionally, commit 27591db fixed a possible zero division in method Calc_MaxTimeStep_V5 of application model sw1d_gate_out that could occur when testing or experimenting in the pure Python mode.
Assets 11
HydPy 6.1.4
Compare
Again, we encountered cases where HydPy-Musk-MCT calculated nan
values for low-flow situations. This time, these were caused by negative estimates of the reference discharge. We fixed this problem by simply resetting negative values to zero (see Calc_ReferenceDischarge_V1 for an example).
Assets 11
HydPy 6.1.3
Compare
This bugfix release improves how main models share information with their sub-submodels. Previously, some data was not passed as deep copies (see 54a5b7d), which could result in wrong assumptions of sub-submodels on, for example, which hydrological response units of the main model consider interception processes.
The previous bug could impact simulation results. However, only those projects could be affected that use a main model that defines a specific "prepare method" (for example, prepare_interception), a submodel that does not specify an equivalent method, and a sub-submodel that uses the information provided by this method. Such combinations can currently only occur when HydPy-Evap is involved and should be rare. Hence, it is unclear if any real projects have been affected.
Assets 11
HydPy 6.1.2
Compare
We encountered cases where HydPy-Musk-MCT calculated nan
values for extremely small reference discharge values. We could fix this problem by increasing the precision of the iterative search for the corresponding reference water level (based on the Pegasus method). Hence, this bugfix release should not only avoid the nan
value problem but might also result in slightly different (typically slightly more precise) results during low flow periods compared to previous releases. Please have a look at #162 for more information.
Assets 11
HydPy 6.1.1
Compare
The function create_projectstructure introduced in HydPy 6.1.0 was only of limited use because one still had to manually create the project's subdirectories (for example, projectroot/network/default
). With HydPy 6.1.1, the different FileManager subclasses do this automatically if their base directory (for example, projectroot/network
) is still empty. See (the end) of the documentation on the currentdir property for an example.
Assets 11
HydPy 6.1.0
Compare
With HydPy 6.1, we switch to a tighter release cycle. Compared to HydPy 6.0, there are a few breaking changes, but those require, at most, little client code adjustments (ask you type checker) and do not change any functionality. Hence, the transition from 6.0 to 6.1 should be smooth.
Here is the list of the most notable new features, documentation improvements, and fixes.
New features:
- The different file managers (for example, the ConditionManager) now print a note when they create or remove a directory. This feature can be turned off by setting printprogress to
False
. - The new "script function" xml_validate allows to check if an XML workflow file fits to XSD schema definition file of the relevant HydPy version from the command line.
- Reading time series from or writing time series to NetCDF files via the related methods of the classes HydPy, Elements, and Nodes now works "automatically", meaning one has not to bother with manually opening and closing NetCDF reader and writer objects anymore.
- The option reprdigits now controls the number format for writing ASCII time series files. By default, all numbers are written in scientific notation (consistent with HydPy 6.0). If you set reprdigits to two, for example, all numbers are written in the decimal form with at most two decimal places
- Class ConditionManager now has the option prefix for changing the prefix of the automatically determined, time-dependent condition directory names. This feature eases, for example, to read the initial conditions of different ensemble members from separate directories
- All subelements of
<conditions_io>
in XML workflow files are now optional. Making the XML elements<inputpath>
and<outputpath>
optional was necessary because otherwise, the new element<prefix>
would be generally impactless. Making the XML element<zip>
optional was primarily for consistency but also for convenience, as its default valuefalse
should apply to most use cases. - When using HydPy from the command line, you can now select two alternative error styles (
single_line
andsplittable
) to squeeze printed error messages in single lines, which is more easily processable for tools like Delft-FEWS. The old behaviour is now namedmultiline
and the default of the newerrorstyle
option. For more information, please look at the documentation for the central hyd.py script. - Function summarise_ncfile now automatically determines and prints the time grid of the analysed NetCDF file if it has the
time reference
attribute defined. - The new functions create_projectstructure and check_projectstructure create and check the basic directory structure of a HydPy project. By default, checking also happens automatically when initialising class HydPy. This feature can be turned off by setting checkprojectstructure to
False
.
Documentation improvements:
- We added the Simulation section to the User Guide. It explains semi-comprehensively performing a simulation run via Python scripts or XML workflow files. It should build a bridge between the Quick Start's introductory remarks and the Reference Manual's extremely detailed explanations.
- The new Creating an Environment section of the Installation Instructions introduces to using virtual environments for the robust installation of, for example, different HydPy versions on the same computer.
Fixes:
- Reading initial conditions files with initial condition data already in RAM (for example, resulting from a previous simulation run) could result in unnecessary trimmings of the read values. The user was warned but had to solve the problem himself (for example, by deleting the data first and rereading the files afterwards). We fixed this issue by applying the "postponed trimming" strategy already implemented for resetting data via dictionaries.
Assets 11
HydPy 6.0.1
Compare
Assets 11
HydPy 6.0.0
Compare
We are happy to announce the release of HydPy 6.0, which comes with many documentation improvements, lots of new models, and, most importantly, a boost in flexibility in combining different model components.
Documentation improvements
We gave the documentation a new structure. Beginners will find it convenient that it now differentiates between a User Guide, which offers a basic introduction to HydPy, and a Reference Manual, which explains everything in depth. We included introductory tutorials (and plan to add tutorials that cover more complex use cases soon) based on the reworked HydPy-H-Lahn example project.
Submodel concept
Previously, one could easily combine models of different "families" in one project (for example, of HydPy-H(BV) and HydPy-L(ARSIM). However, no out-of-the-box mechanism existed for creating new combinations of different model components. Therefore, HydPy 6.0 introduces the Submodel concept. It allows, for example, to set up an HBV-like model that calculates evaporation similar to LARSIM.
So far, the new Submodel concept has been widely rolled out for meteorological factors like global radiation and evapotranspiration, and it at least partly covers topics like runoff concentration and flow formulas. We will modularise more model components in future HydPy versions. See the Submodel Graph in the new Model overview section for a complete list of the currently possible (and advisable) model compositions.
New models
At first sight, HydPy 6.0 comes with a multitude of new models. However, many are just new submodels that we extracted from already existing main models (the new Definitions section explains these terms in detail). For example, HydPy-Evap-PET-HBV96 stems from HydPy-H-HBV96.
Nevertheless, there are still some truly new models worth mentioning:
- HydPy-Evap-PET-AMBAV-1.0 calculates potential evapotranspiration in agreement with the AMBAV 1.0 model of the Deutscher Wetterdienst.
- HydPy-Dam contains three new models for modelling pumps and sluices.
- The new model family HydPy-GA is supposed to provide Green-Ampt infiltration models. The first available models implement the GARTO method, which can be used both as a main model to simulate infiltration excess overland flow for complex rainfall events independently and as a submodel to refine the volume-based runoff generation approach of HydPy-L(ARSIM).
- The new model family HydPy-SW1D introduces "hydrodynamic flood routing" to HydPy. It aims to robustly solve the 1-dimensional shallow water equations in river and channel networks. So, HydPy can now deal much better with catchments in lowland regions where hydraulic structures like weirs and sluices or tidal effects play a major role.
Model name changes
HydPy's model names were too cryptic, so we switched to more descriptive ones. For example, hland_v1 or HydPy-H-Land Version 1 is from now on hland_96 or HydPy-H-HBV96 (adoption of SMHI-IHMS-HBV96). You can find a complete list of all renamings here.
Assets 11
HydPy 6.0a0
131319a
Compare
This is the first pre-release of HydPy 6.0. Almost all of its new features have been implemented. Please look at issue #122 for the things still to come, which are mainly documentation-related.
We now support NumPy 1 and 2 (see issue #147). We included both in our test suites, but the now consistent usage of 64-bit integers (and floats) on all systems and all NumPy versions might cause unexpected inconveniences. Please open an issue if you encounter any problems.
Assets 11
HydPy 5.0.3
Compare
This release includes minor adjustments to make HydPy 5.0 compatible with older versions of NumPy (tested against NumPy 1.22).