Skip to content

Conversation

@staudtMarius
Copy link
Member

@staudtMarius staudtMarius commented Feb 6, 2024

Resolves #180
May help with or resolves #625

staudtMarius and others added 7 commits March 8, 2024 10:54
# Conflicts:
#	CHANGELOG.md
#	src/main/scala/edu/ie3/simona/config/ConfigFailFast.scala
#	src/main/scala/edu/ie3/simona/service/weather/WeatherSource.scala
#	src/main/scala/edu/ie3/simona/service/weather/WeatherSourceWrapper.scala
#	src/test/scala/edu/ie3/simona/config/ConfigFailFastSpec.scala
#	src/test/scala/edu/ie3/simona/service/weather/WeatherSourceSpec.scala
@danielfeismann danielfeismann added this to the Version 4.0 milestone May 21, 2024
@staudtMarius staudtMarius marked this pull request as ready for review June 24, 2024 11:52
…-Wrapper

# Conflicts:
#	CHANGELOG.md
#	src/main/scala/edu/ie3/simona/service/weather/SampleWeatherSource.scala
#	src/test/scala/edu/ie3/simona/service/weather/WeatherSourceSpec.scala
Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for make this more comprehensive

@danielfeismann danielfeismann merged commit b714917 into dev Jul 11, 2024
@danielfeismann danielfeismann deleted the ms/#180-refactor-WeatherSource-and-Wrapper branch July 11, 2024 13:26
@sebastian-peter
Copy link
Member

@danielfeismann I was still reviewing. Will just submit the points I found now after the fact

Comment on lines +656 to +657
s"No coordinate source defined! This is currently not supported! Please provide the config parameters for one " +
s"of the following coordinate sources:\n\t${supportedCoordinateSources.mkString("\n\t")}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should still be possible to run simulations with no weather data at all. Did you check if that works? We only need to fail here if there's a weather source but no coordinate source

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, there has been no option to not use weather data before. So this would be a larger issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebastian-peter Will you create a new issue for this?

Comment on lines +600 to +604
case None | Some(_) =>
throw new InvalidConfigParameterException(
s"No weather source defined! This is currently not supported! Please provide the config parameters for one " +
s"of the following weather sources:\n\t${supportedWeatherSources.mkString("\n\t")}"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar issue here

@danielfeismann
Copy link
Member

Sorry @sebastian-peter wasn't aware that you also had a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Code readability or efficiency is improved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initialization of PvAgents with SqlCoordinateSource still rather slow Refactor WeatherSource and WeatherSourceWrapper

3 participants