Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
08dba668
Commit
08dba668
authored
1 year ago
by
Peter Lünenschloß
Browse files
Options
Downloads
Patches
Plain Diff
black/changelock
parent
4eb2ca53
No related branches found
No related tags found
1 merge request
!824
target broadcasting and numpy array support for generics
Pipeline
#204287
passed with stages
in 5 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+0
-1
0 additions, 1 deletion
CHANGELOG.md
saqc/funcs/generic.py
+3
-1
3 additions, 1 deletion
saqc/funcs/generic.py
with
3 additions
and
2 deletions
CHANGELOG.md
+
0
−
1
View file @
08dba668
...
@@ -9,7 +9,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
...
@@ -9,7 +9,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
[
List of commits
](
https://git.ufz.de/rdm-software/saqc/-/compare/v2.5.0...develop
)
[
List of commits
](
https://git.ufz.de/rdm-software/saqc/-/compare/v2.5.0...develop
)
### Added
### Added
-
`generics`
: target broadcasting and numpy array support
-
`generics`
: target broadcasting and numpy array support
-
`flagGeneric`
: target broadcasting
-
`SaQC`
: automatic translation of incoming flags
-
`SaQC`
: automatic translation of incoming flags
-
Option to change the flagging scheme after initialization
-
Option to change the flagging scheme after initialization
-
`flagByClick`
: manually assign flags using a graphical user interface
-
`flagByClick`
: manually assign flags using a graphical user interface
...
...
This diff is collapsed.
Click to expand it.
saqc/funcs/generic.py
+
3
−
1
View file @
08dba668
...
@@ -83,15 +83,17 @@ def _inferBroadcast(obj, trg_shape) -> pd.DataFrame:
...
@@ -83,15 +83,17 @@ def _inferBroadcast(obj, trg_shape) -> pd.DataFrame:
return
np
.
full
(
trg_shape
,
obj
)
return
np
.
full
(
trg_shape
,
obj
)
return
obj
return
obj
def
_inferDF
(
obj
,
cols
,
index
):
def
_inferDF
(
obj
,
cols
,
index
):
# infer dataframe if result is numpy array of fitting shape
# infer dataframe if result is numpy array of fitting shape
if
isinstance
(
obj
,
np
.
ndarray
):
if
isinstance
(
obj
,
np
.
ndarray
):
lc
=
len
(
cols
)
lc
=
len
(
cols
)
li
=
len
(
index
)
li
=
len
(
index
)
if
(
obj
.
shape
==
(
li
,
lc
))
or
(
obj
.
shape
==
(
li
,)):
if
(
obj
.
shape
==
(
li
,
lc
))
or
(
obj
.
shape
==
(
li
,)):
return
pd
.
DataFrame
(
obj
,
columns
=
cols
,
index
=
index
)
return
pd
.
DataFrame
(
obj
,
columns
=
cols
,
index
=
index
)
return
obj
return
obj
def
_castResult
(
obj
)
->
DictOfSeries
:
def
_castResult
(
obj
)
->
DictOfSeries
:
# Note: the actual keys aka. column names
# Note: the actual keys aka. column names
# we use here to create a DictOfSeries
# we use here to create a DictOfSeries
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment