Skip to content
Snippets Groups Projects
Commit e1aa7ada authored by David Schäfer's avatar David Schäfer
Browse files

release preparation

parent 0fa7170c
No related branches found
No related tags found
2 merge requests!606Release2.3,!605Release 2.3
Pipeline #143641 failed with stages
in 1 minute and 23 seconds
......@@ -7,7 +7,14 @@ SPDX-License-Identifier: GPL-3.0-or-later
# Changelog
## Unreleased
[List of commits](https://git.ufz.de/rdm-software/saqc/-/compare/v2.2.1...develop)
[List of commits](https://git.ufz.de/rdm-software/saqc/-/compare/v2.3.0...develop)
### Added
### Changed
### Removed
### Fixed
## [2.3.0](https://git.ufz.de/rdm-software/saqc/-/tags/v2.3.0) - 2023-01-17
[List of commits](https://git.ufz.de/rdm-software/saqc/-/compare/v2.2.1...v2.3.0)
### Added
- add option to not overwrite existing flags to `concatFlags`
- add option to pass existing axis object to `plot`
......@@ -18,6 +25,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
- Renamed `TranslationScheme.backward` to `TranslationScheme.toExternal`
- Changed default value of the parameter `limit` for `SaQC.interpolateIndex` and `SaQC.interpolateInvalid` to ``None``
- Changed default value of the parameter ``overwrite`` for ``concatFlags`` to ``False``
- Deprecate ``transferFlags`` in favor of ``concatFlags``
### Removed
- python 3.7 support
### Fixed
......
......@@ -396,7 +396,15 @@ class FlagtoolsMixin:
0 -inf -inf -inf
1 255.0 255.0 255.0
"""
import warnings
warnings.warn(
f"""The method 'transferFlags' is deprecated and
will be removed in version 2.5 of SaQC. Please use
'SaQC.concatFlags(field={field}, target={target}, method="match", squeeze=False)'
instead""",
DeprecationWarning
)
return self.concatFlags(field, target=target, method="match", squeeze=False)
@flagging()
......
......@@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
__version__ = "2.2.1"
__version__ = "2.3"
......@@ -286,9 +286,10 @@ def test_transferFlags():
data = pd.DataFrame({"a": [1, 2], "b": [1, 2], "c": [1, 2]})
qc = saqc.SaQC(data)
qc = qc.flagRange("a", max=1.5)
qc = qc.transferFlags(["a", "a"], ["b", "c"])
assert np.all(qc.flags["b"].values == np.array([UNFLAGGED, BAD]))
assert np.all(qc.flags["c"].values == np.array([UNFLAGGED, BAD]))
with pytest.deprecated_call():
qc = qc.transferFlags(["a", "a"], ["b", "c"])
assert np.all(qc.flags["b"].values == np.array([UNFLAGGED, BAD]))
assert np.all(qc.flags["c"].values == np.array([UNFLAGGED, BAD]))
def test_flagJumps():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment