-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General code improvements #527
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: W.F. Stoel <[email protected]>
Signed-off-by: Frederik Stoel <[email protected]>
Signed-off-by: W.F. Stoel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small sugggestions
Signed-off-by: Willem Frederik Stoel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Signed-off-by: Frederik Stoel <[email protected]>
@bartpleiter and @daanvanes, could you please provide an update on the status of this PR? It seems to have been open for quite some time now. |
load[load.index < datetime.now(tz=UTC)] | ||
.idxmax() | ||
.load.date() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[blackfmt] reported by reviewdog 🐶
load[load.index < datetime.now(tz=UTC)] | |
.idxmax() | |
.load.date() | |
load[load.index < datetime.now(tz=UTC)].idxmax().load.date() |
@@ -39,17 +39,16 @@ | |||
from openstef.validation import validation | |||
|
|||
|
|||
class DummyObjective(RegressorObjective): | |||
... | |||
class DummyObjective(RegressorObjective): ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[blackfmt] reported by reviewdog 🐶
class DummyObjective(RegressorObjective): ... | |
class DummyObjective(RegressorObjective): | |
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[blackfmt] reported by reviewdog 🐶
openstef/test/unit/model/test_basecase.py
Lines 22 to 27 in 75c5788
utc_now = ( | |
pd.Series(datetime.now(tz=UTC)) | |
.min() | |
.round("15T") | |
.to_pydatetime() | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[blackfmt] reported by reviewdog 🐶
openstef/test/unit/model/test_basecase.py
Lines 41 to 46 in 75c5788
utc_now = ( | |
pd.Series(datetime.now(tz=UTC)) | |
.min() | |
.round("15T") | |
.to_pydatetime() | |
) |
No description provided.