-
Notifications
You must be signed in to change notification settings - Fork 122
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
[Bug]: type Thermal has no attribute cum_min_retired_cap_mw #766
Comments
Hey @NLaws , great to hear from you and very glad that you're using GenX. Thanks for submitting the issue. I'll get back to you ASAP after running through some tests. |
Hi @NLaws, Thank you for opening this issue. The Could you please provide more details on the case you are running? For instance, is it a multistage optimization? If so, have you included a Resource_multistage_data.csv file that lists the resources with minimum capacity retirement? You can find an example here. The Thank you! |
I believe that cum_min_retired_cap_mw(r::AbstractResource) = r.cum_min_retired_cap_mw only defines the Yes I have a 3 stage problem (myopic = 1) and Resource_multistage_data.csv hat have However, even if there are missing |
Yes, you are correct. This is where the On the other hand, the functions |
hrm still not sure what the issue is. does it help to know that the inputs that I'm working with did work with v0.3 of GenX? I have converted to v0.4 format to my best knowledge but I probably missed something. Is there any guidance documentation on how to update input files for the transition to v0.4 from v0.3? |
We’ve written this guide and also developed a script to help with the translation. I'm not sure if you’ve seen it in the release notes. If you’d like, feel free to reach out, and I can take a look at your inputs and do some debugging. |
I finally had a chance to try out the conversion script that @lbonaldo linked to on Sep. 11: it worked! |
Bug description
it looks like there is a missing attribute in the generated code for thermal resources? I see
in resources.jl, but adding
:min_retired_cap_mw
to the list ofattr
does not fix the error.Here is the traceback:
Environment and Version
Julia 1.10.4, GenX v0.4.1
Relevant error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: