-
Notifications
You must be signed in to change notification settings - Fork 119
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
Creating customs chronics folder from existing chronics folder #447
Comments
Hello, First questionFor the first question, you have multiple choices : ManuallyYou basically make an environment with what you want exactly.
On the flyYou can specify how much time step you want to skip at the beginning and how long an episode should last. See the https://grid2op.readthedocs.io/en/latest/environment.html#grid2op.Environment.BaseEnv.fast_forward_chronics and https://grid2op.readthedocs.io/en/latest/environment.html#grid2op.Environment.Environment.set_max_iter Manually within a python scriptThere is a function https://grid2op.readthedocs.io/en/latest/chronics.html#grid2op.Chronics.Multifolder.split_and_save that you might use for doing what you want. Second questionI don't really know what's going on with your runner. Have you modify the Beside, the |
Update: I found out the "bug". Have you read the documentation of I think you missed a few things there and that caused your environment to have only one set of time series available. |
Hi Benjamin, Thanks for your prompt response and excellent suggestions. For the first issue the manual python script solution is what I was looking for. I used the following script to generate customized chronics and load them Generate custom chronics and load
Second QuestionThanks for finding out the issue in the script I provided, seems like I was missing some extra initialization and filtering lines for Script
Output
|
Hello Thanks for the feedback. Concerning your first question, you directly give the path you want to use for the time series ("chronics") when you create the environment. You can do this with the env2 = grid2op.make(..., chronics_path="./path_out") for example About your second question, i did not really paid much attention to the "max_iter" kwargs indeed. Your code looks ok, i'll check for a possible bug with the runner |
Hi Benjamin, I noticed an issue when I am trying to split_and_save more than 180 chronics at one go. I have uploaded a beginning and end file dictionary in pickle format here . If the following code is executed
I am getting the error
I think it might be happening because the |
Hello, Sorry for long delay in answering. Can you create a dedicated issue (following the issue template) for this please ? Thanks Also, "chronics" (time series) are just csv, so if you can load a csv (using pandas for example) and only write part of it in a different folder (using pandas for example) you can probably write your own script that does just what you want to do. |
I am closing this issue as it appears to be working (i'm keeping opened the other one) |
Environment
1.8.1
osx
I would like to know if it is possible to create a custom chronics folder from the existing chronics with only 287 timesteps ( for 1 day with 5 min interval ) and it would contain only the last day when the environment terminates. For example with a DoNothing agent I determine that for
l2rpn_case14_sandbox
network the chronics for0000
,0001
,0002
execute for1091
,807
and3001
time steps. I would like to create a custom chronics folder that would contain chronics for0000
from863:1051
for0001
from577:863
and0002
will have1041:3167
, Reason for doing this is to evaluate the trained agent only for days when the environment terminatesAlso I noticed that even though I specified
max_iter
inRunner
it is running for all the timesteps and have the same chronic name in the following code snippet. I might be possibly making some silly mistake and can't locate it and your help would be appreciated. Thanks!Code Snippet
Output
The text was updated successfully, but these errors were encountered: