Skip to content

Commit

Permalink
Updated changelog and corrected small error due to refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Aug 6, 2023
1 parent e64418a commit 1eded97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Changed
* Requiring netcdf4 >= 1.6.4
* Optional dependencies of xarray that improve performance are now required by default.
* variance_stokes_linear() does not default through zero anymore.
* Refactored calibration_single_ended and calibration_double_ended()
* Moved ParameterIndices classes to calibration_utils.py
* Flox included in requirements to speed up resampling via xarray ([Xarray #5734](https://github.com/pydata/xarray/pull/5734)).

Removed
Expand Down
8 changes: 6 additions & 2 deletions src/dtscalibration/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from scipy.optimize import minimize
from scipy.sparse import linalg as ln

from dtscalibration.calibrate_utils import calibration_single_ended_helper
from dtscalibration.calibrate_utils import calibration_double_ended_helper
from dtscalibration.calibrate_utils import match_sections
from dtscalibration.calibrate_utils import parse_st_var
from dtscalibration.datastore_utils import ParameterIndexDoubleEnded
Expand Down Expand Up @@ -1931,7 +1933,8 @@ def calibration_single_ended(
)

if method == "wls":
p_cov, p_val, p_var = self.calibration_single_ended_helper(
p_cov, p_val, p_var = calibration_single_ended_helper(
self,
st_var,
ast_var,
fix_alpha,
Expand Down Expand Up @@ -2382,7 +2385,8 @@ def calibration_double_ended(
matching_indices = match_sections(self, matching_sections)

if method == "wls":
p_cov, p_val, p_var = self.calibration_double_ended_helper(
p_cov, p_val, p_var = calibration_double_ended_helper(
self
st_var,
ast_var,
rst_var,
Expand Down

0 comments on commit 1eded97

Please sign in to comment.