-
Notifications
You must be signed in to change notification settings - Fork 40
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
Wrap up initial data access refactor #570
Conversation
69a3a05
to
d933773
Compare
d933773
to
85fe7f8
Compare
When preparing the scenario from my machine I get:
|
Now:
|
Couple things:
|
I had done a pull but maybe somehow the
|
f60d26c
to
2e5fa4f
Compare
85fe7f8
to
a8d5d95
Compare
6efaba5
to
009c5b6
Compare
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.
When preparing scenario in client server mode I can successfully prepare it but after a while I get the socket exception:
>>> scenario.prepare_simulation_input()
Transferring ExecuteList.csv from ssh_fs
100%|####################################################################################| 50.5k/50.5k [00:00<00:00, 692kb/s]
---------------------------
PREPARING SIMULATION INPUTS
---------------------------
--> Loading demand
Writing scaled demand profile to tmp/scenario_3911/demand.csv
Writing tmp/scenario_3911/demand.csv
--> Loading hydro
Writing scaled hydro profile to tmp/scenario_3911/hydro.csv
Writing tmp/scenario_3911/hydro.csv
--> Loading solar
Writing scaled solar profile to tmp/scenario_3911/solar.csv
Writing tmp/scenario_3911/solar.csv
--> Loading wind
Writing scaled wind profile to tmp/scenario_3911/wind.csv
Writing tmp/scenario_3911/wind.csv
Building MPC file
Writing tmp/scenario_3911/case.mat
Transferring ExecuteList.csv from ssh_fs
100%|####################################################################################| 50.5k/50.5k [00:00<00:00, 717kb/s]
--> Setting status=prepared in execute list
Transferring ExecuteList.csv to server
>>> Socket exception: Operation timed out (60)
and every consecutive call such as scenario.print_scenario_info()
returns OSError: Socket is closed
It looks like the scenario was prepared properly but I still get the operation timed out error.
a8d5d95
to
fbb2718
Compare
…ting in execute state
…for partial deletes
Update: fixed. |
Deleting is much faster now. Thank you! |
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.
Thank you for your work!
Purpose
Relates to #552
Based on the changes introduced in the
data_access_refactor
feature branch, this contains bugfixes and some code cleanup. Additionally it introduces blob storage as a read only source of scenario data, using fs-azureblob to maintain consistency across filesystems.What the code is doing
move_to
method which is only being used for the scenario/execute list, and combine withpush
which is what is used for those filesMultiFS
to combine remote filesystems (represented by theDataAccess.fs
attribute)test_usa_tamu
profiles from blob storageTesting
Ran a simulation in a container, and created/prepared one on the server. For the container, I removed the
pip install .
from the Dockerfile and mounted the PowerSimData repo on my local machine into/PowerSimData
in the client container, so changes could be tested more quickly. However this is optional and shouldn't affect functionality.Time estimate
40 min