Running CSP simulation with API won't run: set year and month.

  • ampodgorski
  • Topic Author
More
03 May 2019 09:17 #6774 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

Please Log in or Create an account to join the conversation.

  • pgilman
More
06 May 2019 09:18 #6775 by pgilman
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
Code:
stderr
. 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
Code:
stderr
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":

Code:
python untitled.py 2> out


Best regards,
Paul.



Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum