Skip to content
Snippets Groups Projects
Commit 05d0ff4a authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

Merge branch 'docBugs' into 'develop'

doc errors mitigated

See merge request !454
parents 0fd879c6 d0829da6
No related branches found
No related tags found
6 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!454doc errors mitigated
Pipeline #84000 passed with stage
in 2 minutes and 46 seconds
......@@ -90,3 +90,34 @@ class Drift:
**kwargs,
) -> saqc.SaQC:
return self._defer("correctOffset", locals())
@doc(saqc.funcs.drift.flagRegimeAnomaly.__doc__)
def flagRegimeAnomaly(
self,
field: str,
cluster_field: str,
spread: float,
method: LinkageString = "single",
metric: Callable[[np.ndarray, np.ndarray], float] = lambda x, y: np.abs(
np.nanmean(x) - np.nanmean(y)
),
frac: float = 0.5,
flag: float = BAD,
**kwargs,
) -> saqc.SaQC:
return self._defer("flagRegimeAnomaly", locals())
@doc(saqc.funcs.drift.assignRegimeAnomaly.__doc__)
def assignRegimeAnomaly(
self,
field: str,
cluster_field: str,
spread: float,
method: LinkageString = "single",
metric: Callable[[np.ndarray, np.ndarray], float] = lambda x, y: np.abs(
np.nanmean(x) - np.nanmean(y)
),
frac: float = 0.5,
**kwargs,
) -> saqc.SaQC:
return self._defer("assignRegimeAnomaly", locals())
......@@ -34,7 +34,7 @@ class Tools:
return self._defer("renameField", locals())
@doc(saqc.funcs.tools.selectTime.__doc__)
def maskTime(
def selectTime(
self,
field: str,
mode: Literal["periodic", "selection_field"],
......
......@@ -30,10 +30,10 @@ def flagPatternByWavelet(
Pattern recognition via wavelets.
The steps are:
1. work on chunks returned by a moving window
2. each chunk is compared to the given pattern, using the wavelet algorithm as
presented in [1]
3. if the compared chunk is equal to the given pattern it gets flagged
1. work on chunks returned by a moving window
2. each chunk is compared to the given pattern, using the wavelet algorithm as
presented in [1]
3. if the compared chunk is equal to the given pattern it gets flagged
Parameters
----------
......@@ -199,10 +199,10 @@ def flagPatternByDTW(
"""Pattern Recognition via Dynamic Time Warping.
The steps are:
1. work on a moving window
2. for each data chunk extracted from each window, a distance to the given pattern
is calculated, by the dynamic time warping algorithm [1]
3. if the distance is below the threshold, all the data in the window gets flagged
1. work on a moving window
2. for each data chunk extracted from each window, a distance to the given pattern
is calculated, by the dynamic time warping algorithm [1]
3. if the distance is below the threshold, all the data in the window gets flagged
Parameters
----------
......
......@@ -11,6 +11,4 @@ pattern
.. autosummary::
~SaQC.flagPatternByWavelet
~SaQC.calculateDistanceByDTW
~SaQC.flagPatternByDTW
......@@ -236,12 +236,12 @@ which gives you separate plots for each call to plot:
* - SM1
- SM2
* - .. image:: ../resources/images/SM1processingResults.png
:target: ../resources/images/SM1processingResults.png
* - .. image:: ../resources/temp/SM1processingResults.png
:target: ../resources/temp/SM1processingResults.png
:alt:
- .. image:: ../resources/images/SM2processingResults.png
:target: ../resources/images/SM2processingResults.png
- .. image:: ../resources/temp/SM2processingResults.png
:target: ../resources/temp/SM2processingResults.png
:alt:
......
sphinxdoc/resources/temp/SM1processingResults.png

54.9 KiB | W: | H:

sphinxdoc/resources/temp/SM1processingResults.png

54.9 KiB | W: | H:

sphinxdoc/resources/temp/SM1processingResults.png
sphinxdoc/resources/temp/SM1processingResults.png
sphinxdoc/resources/temp/SM1processingResults.png
sphinxdoc/resources/temp/SM1processingResults.png
  • 2-up
  • Swipe
  • Onion skin
sphinxdoc/resources/temp/SM2processingResults.png

141 KiB | W: | H:

sphinxdoc/resources/temp/SM2processingResults.png

141 KiB | W: | H:

sphinxdoc/resources/temp/SM2processingResults.png
sphinxdoc/resources/temp/SM2processingResults.png
sphinxdoc/resources/temp/SM2processingResults.png
sphinxdoc/resources/temp/SM2processingResults.png
  • 2-up
  • Swipe
  • Onion skin
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