Skip to content

Try to fix the gh-action configration to work with extra requirements #147

Try to fix the gh-action configration to work with extra requirements

Try to fix the gh-action configration to work with extra requirements #147

Triggered via push June 27, 2024 09:24
Status Failure
Total duration
Artifacts

This workflow graph cannot be shown

A graph will be generated the next time this workflow is run.

Annotations

7 errors
Error
every step must define a `uses` or `run` key
/home/runner/work/demandlib/demandlib/src/demandlib/tools.py#L1
"""Tools needed by the main classes """ + import pandas as pd def add_weekdays2df(time_df, holidays=None, holiday_is_sunday=False): r"""Giving back a DataFrame containing weekdays and optionally holidays for
/home/runner/work/demandlib/demandlib/src/demandlib/tools.py#L42
other=0, inplace=True, ) if holiday_is_sunday: - time_df.weekday = time_df.weekday.mask(cond=time_df.weekday == 0, other=7) + time_df.weekday = time_df.weekday.mask( + cond=time_df.weekday == 0, other=7 + ) return time_df
/home/runner/work/demandlib/demandlib/tests/test_examples.py#L5
SPDX-FileCopyrightText: Patrik Schönfeldt SPDX-License-Identifier: MIT """ + import os import matplotlib
/home/runner/work/demandlib/demandlib/src/demandlib/bdew/elec_slp.py#L107
datetime.datetime(2007, 1, 1, 0), periods=2016, freq="15Min" ) tmp_df.set_index(index, inplace=True) # Create empty DataFrame to take the results. - new_df = pd.DataFrame(index=dt_index, columns=slp_types, dtype=float).fillna(0) + new_df = pd.DataFrame( + index=dt_index, columns=slp_types, dtype=float + ).fillna(0) new_df = add_weekdays2df( new_df, holidays=holidays, holiday_is_sunday=True ) new_df["hour"] = dt_index.hour.astype(int)
/home/runner/work/demandlib/demandlib/src/demandlib/bdew/heat_building.py#L62
self.annual_heat_demand = kwargs.get("annual_heat_demand") self.shlp_type = kwargs.get("shlp_type").upper() self.wind_class = kwargs.get("wind_class") self.building_class = kwargs.get("building_class", 0) # raise error if building class is not 0 for non-residential buildings - if (self.shlp_type not in ["EFH", "MFH"]) and (self.building_class != 0): + if (self.shlp_type not in ["EFH", "MFH"]) and ( + self.building_class != 0 + ): raise ValueError( "Building class must be 0 for non-residential buildings" - ) + ) self.ww_incl = kwargs.get("ww_incl", True) self.name = kwargs.get("name", self.shlp_type) def weighted_temperature(self, how="geometric_series"): r"""
/home/runner/work/demandlib/demandlib/src/demandlib/bdew/heat_building.py#L282
# check if it does not find one row of sigmoid parameters if len(sigmoid) != 1: raise ValueError( wrong_number_of_parameters_message.format(len(sigmoid)) - ) + ) # get sigmoid parameters, avoid warning a = sigmoid["parameter_a"].iloc[0] b = sigmoid["parameter_b"].iloc[0] c = sigmoid["parameter_c"].iloc[0]