- Posts: 1
Running CSP simulation with API won't run: set year and month.
- ampodgorski
- Topic Author
Less
More
03 May 2019 09:17 #6774
by ampodgorski
Running CSP simulation with API won't run: set year and month. was created by ampodgorski
After clicking Generate Code for Python 3 and running the simulation as a test for using the SDK with CSP Molten Tower, an error message is developed:
S_decode ==> Please fix the year: 0 [1950-2050]
S_decode ==> Please fix the day-of-year: 0
How can the year / day-of-year be set? I cannot find an answer in the documentation and I have tried setting it using the normal ssc.data_set_number() method.
Thanks,
Adam
S_decode ==> Please fix the year: 0 [1950-2050]
S_decode ==> Please fix the day-of-year: 0
How can the year / day-of-year be set? I cannot find an answer in the documentation and I have tried setting it using the normal ssc.data_set_number() method.
Thanks,
Adam
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
06 May 2019 09:18 #6775
by pgilman
Replied by pgilman on topic Running CSP simulation with API won't run: set year and month.
Dear Adam,
You can ignore those two errors.
This is an issue with some of the power tower model's underlying code, specifically in the S_decode function in solpos.cpp , which writes a series of messages to
. The function reports the two errors you mention even when the weather file is valid, so that is a bug in the code that we will fix.
Depending on how you are executing your Python code, you may or may not see the
messages. If you are seeing the messages and want to suppress them, you can use the following from the command line to redirect the messages, assuming your Python code is in a file named "untitled.py":
Best regards,
Paul.
You can ignore those two errors.
This is an issue with some of the power tower model's underlying code, specifically in the S_decode function in solpos.cpp , which writes a series of messages to
Code:
stderr
Depending on how you are executing your Python code, you may or may not see the
Code:
stderr
Code:
python untitled.py 2> out
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman