Skip to content
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

Weather data should optionally be loadable from a file #473

Closed
jecollins opened this issue Jan 11, 2012 · 2 comments
Closed

Weather data should optionally be loadable from a file #473

jecollins opened this issue Jan 11, 2012 · 2 comments

Comments

@jecollins
Copy link
Member

Prashant writes:

I have run into issues with the weather service not being available or me not having web connectivity when I was trying to run the server. Would it make sense to be able to configure the server, for testing purposes, to load the default data from a local file deployed with the server? I understand that the datasets can get huge, but if it's for a single date/location, it shouldn't be too big? If it really is unreasonably large, we could make it an optional download for server developers?

@govertbuijs
Copy link
Member

There is a related problem : when during a game the call to the weather server fails, the game is ended prematurely. But it still reports as 'success'.

For repeatability of games we also need to have the same weather data.

@govertbuijs
Copy link
Member

This is fixed, both for command line and visualizers games. Input can be an XML file or state file. The XML can be generated via create_sim_weather.py (powertac-weather-server/scripts). The state file can also be an URL.

The XML file is about 8MB.

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

No branches or pull requests

2 participants