Pls help me for "Invalid syntax"

29 views
Skip to first unread message

Pornchai Petthaveeporndej

unread,
Apr 30, 2023, 12:02:46 PM4/30/23
to pvlib-python
system = PVSystem(surface_tilt=45,surface_azimuth=180,
..................module_parameters=module, inverter_parameters=inverter,
..................temperature_model_parameters=temperature_parameters)


it show console
=> 
   system = PVSystem(surface_tilt=45,surface_azimuth=180,
    ^
SyntaxError: invalid syntax

kevina...@gmail.com

unread,
Apr 30, 2023, 2:09:59 PM4/30/23
to pvlib-python
That code looks okay to me.  Sometimes SyntaxErrors are reported at locations on the lines following the actual incorrect code.  I suggest checking that the few lines of code before this PVSystem line are correct.  If you don't find the issue, can you include the full code (not just a single line) that you are running?

I'm assuming the "..." characters are not actually part of your code (if they are, then take them out; those are not valid python).

Best,
Kevin
Reply all
Reply to author
Forward
0 new messages