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

Merge branch 'release2.3' into 'develop'

Release 2.3

See merge request !605
parents 0fa7170c c6d999f2
No related branches found
No related tags found
3 merge requests!685Release 2.4,!684Release 2.4,!605Release 2.3
Pipeline #143661 passed with stages
in 8 minutes and 58 seconds
......@@ -29,7 +29,7 @@ jobs:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
defaults:
run:
# somehow this also works for windows O.o ??
......
......@@ -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()
......
......@@ -327,7 +327,7 @@ class ToolsMixin:
ax_kwargs=ax_kwargs,
)
if ax is None:
if ax is None and not path:
plt.show()
if path:
......
......@@ -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