-
Notifications
You must be signed in to change notification settings - Fork 151
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
error running financial_functions.py #40
Comments
I am also encountering this error - just curious if you have found a patch. Thank you |
Hi @sfk1107,
Which will make the singular value be read as a list (iterable) instead. Let me know if that gives you any issue once implemented and I can take a second look |
Thanks for your help. I implemented your fix then got a TypeError, so I added pd.to_numeric to get that resolved:
pd.to_numeric([agent.loc['itc_fraction_of_capex'] * 100])
As an aside, now when I run the model, it estimates the years 2014 and 2016 then stops running and won't go beyond those years. Any idea what could be going on there?
Thanks again
…________________________________
From: Michaela Sizemore ***@***.***>
Sent: Tuesday, October 8, 2024 4:12 PM
To: NREL/dgen ***@***.***>
Cc: sfk1107 ***@***.***>; Mention ***@***.***>
Subject: Re: [NREL/dgen] error running financial_functions.py (Issue #40)
Hi @sfk1107<https://github.com/sfk1107>,
I believe this is a quirk with PySAM, but it is is fairly simple fix. You can update the line in financial functions to be:
loan.TaxCreditIncentives.itc_fed_percent = [agent.loc['itc_fraction_of_capex'] * 100]
Which will make the singular value be read as a list (iterable) instead. Let me know if that gives you any issue once implemented and I can take a second look
—
Reply to this email directly, view it on GitHub<#40 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BKXVL6SL2W2N42ZYRYUZDMDZ2RDD5AVCNFSM6AAAAABLIT3I6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBQHAZDSNZXGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I encountered this issue as well. Given that it affects so many people, we should do a pull request to fix it. |
I am running into this error in financial_functions.py in
loan.TaxCreditIncentives.itc_fed_percent = agent.loc['itc_fraction_of_capex'] * 100
TypeError: error converting tuple to array: argument must be iterable
The text was updated successfully, but these errors were encountered: