Conversation
| raise IOError( | ||
| "Failed to delete entry in %s on server" % const.SCENARIO_LIST | ||
| ) | ||
| raise IOError(err_message) |
jenhagg
left a comment
There was a problem hiding this comment.
We want to synchronize corresponding changes to PostREISE, etc?
In fact, there is nothing in PostREISE that needs to be changed. I thought the |
|
Ha, awesome. I got an error with local branch in PostREISE but seems that's the only thing affected. All good from my side. |
|
Just realize I forgot to update the path to the data in the setup.py file. |
| self.ct = ct | ||
|
|
||
| self.TMP_DIR = "%s/scenario_%s" % (const.EXECUTE_DIR, scenario_info["id"]) | ||
| self.TMP_DIR = "%s/scenario_%s" % ( |
There was a problem hiding this comment.
Do you think it would be cleaner to do this with posixpath.join?
| raise IOError(err_message[0].strip()) | ||
|
|
||
| err_message = "Failed to generate id for new scenario" | ||
| stdout = self._execute_and_check_err(command, err_message) |
There was a problem hiding this comment.
Where is 'command' defined? Should it be 'script' instead?
| :raises ValueError: if model or engine does not exist. | ||
| """ | ||
|
|
||
| def __init__(self, interconnect, source="usa_tamu", engine="REISE"): |
There was a problem hiding this comment.
Should we change the default engine into 'REISE.jl' some time.
There was a problem hiding this comment.
We changed the default when creating a scenario in #229. I am not sure there is a point in having a default here, since all entries in the ScenarioList should be appropriately tagged.
There was a problem hiding this comment.
A Grid object does not have access to the ScenarioList file. And we need to know the engine to appropriately read the *_grid.mat files. This optional argument is kind of transparent because it is handled in the _set_ct_and_grid method of the Analyze class
BainanXia
left a comment
There was a problem hiding this comment.
Thanks for taking care of this tedious work. I think the reorganization makes the package structure and naming more reasonable.
Purpose
Rename/move modules and move data as listed in #244.
What is the code doing?
There are only two modules that I have tweaked:
_execute_and_check_errmethod to raise an explicit error message if the command fails._set_data_locmethod.Otherwise I created some
__init__module along with modifying various import statements and existing__init__modules.Where to look
The only module that is not covered by the tests is powersimdata.data_access.scenario_list. Make sure everything looks good there.
Time estimate
15 minutes.