Skip to content

Commit

Permalink
Fixes to minor comments from Bart
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Oct 16, 2023
1 parent cfc4c1b commit 044eedf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ readme = "README.rst"
license = "BSD-3-Clause"
requires-python = ">=3.9, <3.12"
authors = [
{name = "Bas des Tombe", email = "[email protected]"},
{name = "Bart Schilperoort", email = "[email protected]"},
{name = "Bas des Tombe, Bart Schilperoort"},
]
maintainers = [
{name = "Bas des Tombe", email = "[email protected]"},
{name = "Bart Schilperoort", email = "[email protected]"},
{name = "Bas des Tombe, Bart Schilperoort"},
]
keywords = [
"DTS",
Expand All @@ -56,15 +54,15 @@ dependencies = [
"dask",
"pandas",
"xarray[parallel]", # numbagg (llvmlite) is a pain to install with pip
"bottleneck", # optional, speed up Xarray
"flox", # optional, speed up Xarray
"bottleneck", # speeds up Xarray
"flox", # speeds up Xarray
"pyyaml>=6.0.1",
"xmltodict",
"scipy",
"statsmodels",
"matplotlib",
"netCDF4>=1.6.4",
"nc-time-axis>=1.4.1" # optional plot dependency of xarray
"nc-time-axis>=1.4.1" # plot dependency of xarray
]
dynamic = ["version"]

Expand Down
7 changes: 1 addition & 6 deletions src/dtscalibration/averaging_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ def inverse_variance_weighted_mean(
tmpw_store="tmpw",
tmpw_var_store="tmpw_var",
):
"""
Average two temperature datasets with the inverse of the variance as
weights. The two
temperature datasets `tmp1` and `tmp2` with their variances
`tmp1_var` and `tmp2_var`,
respectively. Are averaged and stored in the DataStore.
"""Compute inverse variance weighted average, and add result in-place.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion src/dtscalibration/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def sections(self, value):
"Not possible anymore. Instead, pass the sections as an argument to \n"
"ds.dts.calibrate_single_ended() or ds.dts.calibrate_double_ended()."
)
raise NotImplementedError(msg)
raise DeprecationWarning(msg)

def check_reference_section_values(self):
"""
Expand Down

0 comments on commit 044eedf

Please sign in to comment.