Fix/eliminate warnings #1210
Annotations
1 error and 3 warnings
/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/views.py#L404
labels = [s for s, t in x]
dataframes = []
for lb in labels:
- subset = df.T.groupby(
- lambda x1: (
- lambda fr, to, ty: "output"
- if (fr == lb and ty == "flow")
- else "input"
- if (to == lb and ty == "flow")
- else "level"
- if (fr == lb and ty != "flow")
- else None
- )(*x1)
- ).sum().T
+ subset = (
+ df.T.groupby(
+ lambda x1: (
+ lambda fr, to, ty: "output"
+ if (fr == lb and ty == "flow")
+ else "input"
+ if (to == lb and ty == "flow")
+ else "level"
+ if (fr == lb and ty != "flow")
+ else None
+ )(*x1)
+ )
+ .sum()
+ .T
+ )
subset["net_flow"] = subset["output"] - subset["input"]
subset.columns = pd.MultiIndex.from_product(
[[lb], [o for o in lb.outputs], subset.columns]
|
clean
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
docs
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|