Skip to content

Commit

Permalink
Merge pull request #21 from GeoStat-Framework/update_IO
Browse files Browse the repository at this point in the history
Enhancement: refactor data_io, Well class and author list
  • Loading branch information
MuellerSeb committed Jul 28, 2021
2 parents cc620cf + cb2c309 commit b1f3c7d
Show file tree
Hide file tree
Showing 8 changed files with 342 additions and 173 deletions.
6 changes: 5 additions & 1 deletion .zenodo.json
Expand Up @@ -15,6 +15,10 @@
"orcid": "0000-0001-9060-4008",
"affiliation": "Helmholtz Centre for Environmental Research - UFZ",
"name": "Sebastian M\u00fcller"
},
{
"affiliation": "Utrecht University - The Netherlands",
"name": "Jarno Herrmann"
}
]
}
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,10 +4,18 @@ All notable changes to **welltestpy** will be documented in this file.

## [Unreleased]

### Enhancements
- added `cooper_jacob_correction` to `process` (thanks to Jarno Herrmann)
- added `diagnostic_plots` module (thanks to Jarno Herrmann)
- added `screensize`, `screen`, `aquifer` and `is_piezometer` attribute to `Well` class
- added version information to output files
- added `__repr__` to `Campaign`

### Changes
- modernized packaging workflow using `pyproject.toml`
- removed `setup.py` (use `pip>21.1` for editable installs)
- removed `dev` as extra install dependencies
- better exceptions in loading routines

### Bugfixes
- loading steady pumping tests was not possible due to a bug
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Sebastian Mueller
Copyright (c) 2021 Sebastian Müller, Jarno Herrmann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Expand Up @@ -104,8 +104,8 @@ def setup(app):
# General information about the project.
curr_year = datetime.datetime.now().year
project = "welltestpy"
copyright = "2018 - {}, Sebastian Mueller".format(curr_year)
author = "Sebastian Mueller"
copyright = "2018 - {}, Sebastian Müller, Jarno Herrmann".format(curr_year)
author = "Sebastian Müller, Jarno Herrmann"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -210,7 +210,7 @@ def setup(app):
master_doc,
"welltestpy.tex",
"welltestpy Documentation",
"Sebastian Mueller",
author,
"manual",
)
]
Expand Down
9 changes: 5 additions & 4 deletions setup.cfg
Expand Up @@ -4,10 +4,10 @@ description = welltestpy - package to handle well-based Field-campaigns.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/GeoStat-Framework/welltestpy
author = Sebastian Mueller
author_email = sebastian.mueller@ufz.de
maintainer = Sebastian Mueller
maintainer_email = sebastian.mueller@ufz.de
author = Sebastian Müller, Jarno Herrmann
author_email = info@geostat-framework.org
maintainer = Sebastian Müller
maintainer_email = info@geostat-framework.org
license = MIT
license_file = LICENSE
platforms = any
Expand Down Expand Up @@ -50,6 +50,7 @@ install_requires =
pandas>=0.23.2,<2
scipy>=1.1.0,<2
spotpy>=1.5.0,<2
packaging>=20
python_requires = >=3.6
zip_safe = False

Expand Down
8 changes: 8 additions & 0 deletions welltestpy/data/campaignlib.py
Expand Up @@ -471,6 +471,14 @@ def diagnostic_plot(self, pumping_test, observation_well, **kwargs):
f"diagnostic_plot: test '{pumping_test}' could not be found!"
)

def __repr__(self):
"""Representation."""
return (
f"Campaign '{self.name}' at '{self.fieldsite}' with "
f"{len(self.wells)} wells and "
f"{len(self.tests)} tests"
)

def save(self, path="", name=None):
"""Save the campaign to file.
Expand Down

0 comments on commit b1f3c7d

Please sign in to comment.