-
Notifications
You must be signed in to change notification settings - Fork 34
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
Using the old-fashioned input_file_x.py does not work #83
Comments
Thanks for spotting this issue. This is similar to issue #81, but originating from a different line of the code since you are not converting .py files into .xlsx as in this prior, related issue. I believe the issue here lies in line 29 of the Now, if This can be easily fixed in various ways, but I wonder which one is the best. Perhaps, @Bachibouzouk , we should get rid of |
For further clarity on what I meant above, for instance, you may run
So the code basically keeps looking for these 3 pre-defined examples and ignores anything happening locally |
A solution to keep the old way could be to use another way to import a module |
I could not make it work :( |
Have we decided that the option to get rid of |
I think the way to go around this difficulty would be to add a block of code at the end of the file which does create a UseCase with the user_list and then call a method to simulate daily profiles
Alternatively we can also modify
Both solution highlighted there would fit to users who like to run ramp from IDE and not from terminal, it would also work from terminal with The first solution would help greatly to make maintainability easier for .xlsx users, pure python users in IDE and in Jupyter notebooks so I would vote for this one :) |
What do you think @FLomb, @mohammadamint ? |
I think the first solution would work nicely. My only concern is about how many functions named something like
The new method you propose, |
I would rather have the first solution. |
Sorry @FLomb it was a typo on my side, I meant already existing To me it seems we all agree to the first proposition, i.e.
|
Ok great, then yeah, let's proceed with the first proposition! |
This issue was addressed by the new release v0.5.0. FYI, @Stevogallo, if you want to try out the new version (check out the updated README file and docs). |
Actually mirroring what has been raised in Issue-81
When I try to use the input file in .py format, it works with the 3 embedded examples, but if I create an input_file_x.py with x=/=[1,2,3] it says module ramp_something not found.
Furthermore, if I try to modify the content of input_file_1/2/3.py and run ramp_run, it still simulates follwing the embedded example, ignoring the modification.
The text was updated successfully, but these errors were encountered: