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

fix missing __globals__ attribute

parent 5811a3b6
No related branches found
No related tags found
1 merge request!847fix missing __globals__ attribute
......@@ -29,6 +29,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
- `Flags`: add meta entry to imported flags
- group operations were overwriting existing flags
- `SaQC._construct` : was not working for inherit classes (used hardcoded `SaQC` to construct a new instance).
- `processgeneric`: improved numpy function compatability
### Deprecated
- `flagManual` in favor of `setFlags`
- `inverse_` + methodstring options for `concatFlags` parameter `method` deprecated in favor of `invert=True` setting
......
......@@ -64,6 +64,9 @@ def _execGeneric(
**ENVIRONMENT,
}
# some function don't have a globals attribute (e.g. np.sum)
if not hasattr(func, "__globals__"):
func.__globals__ = {}
func.__globals__.update(globs)
if isinstance(data, pd.Series):
......
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