python error

  • stef
  • Topic Author
  • New Member
  • New Member
More
10 Mar 2018 22:08 #6116 by stef
python error was created by stef
Hi ,
I generate code pyton with SAM, but doesn''t work when I execude a code.
syntax error (ssc.data_set_matrix( data, b'subarray1_shading:mxh', subarray1_shading:mxh );

any idea ?

regards
stef

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

  • Paul Gilman
  • Paul Gilman's Avatar
  • Platinum Member
  • Platinum Member
More
13 Mar 2018 21:27 #6117 by Paul Gilman
Replied by Paul Gilman on topic python error
Dear Stef,

Could you attach the .sam file you used to generate the Python code to your original post above (edit the post to attach another file). It looks like there might be too many spaces in the subarray_shading:mxh arrays.

Best regards,
Paul.

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

  • stef
  • Topic Author
  • New Member
  • New Member
More
18 Mar 2018 12:56 #6118 by stef
Replied by stef on topic python error
Hi Paul,
Thank you for your answer. The file's uploade on the last post.
regards
SR

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

  • stef
  • Topic Author
  • New Member
  • New Member
More
18 Mar 2018 12:59 #6119 by stef
Replied by stef on topic python error
Note that the errors are due to a parametric simulation

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

  • alsagria1
  • New Member
  • New Member
More
18 Mar 2018 13:24 #6120 by alsagria1
Replied by alsagria1 on topic python error
May I know how to convert your SAM model to Python?

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

  • Paul Gilman
  • Paul Gilman's Avatar
  • Platinum Member
  • Platinum Member
More
19 Mar 2018 15:10 #6121 by Paul Gilman
Replied by Paul Gilman on topic python error
Please see the video in this discussion:

sam.nrel.gov/node/75009

Best regards,
Paul.

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

Moderators: Paul Gilman
Powered by Kunena Forum