- Posts: 16
SAMsimPVWattsCommercialExample.py error
- Dan
- Topic Author
        Less
        More
        
            
    
        
            
        
                17 Nov 2021 16:59                #10273
        by Dan
    
    
            
            
            
            
            
                                
    
                                                
    
        SAMsimPVWattsCommercialExample.py error was created by Dan            
    
        Tried running the SAMsimPVWattsCommercialExample.py script in the pySAM examples folder and got the following error. Is there a hard coded link in the pvwattsv7 code?
➜ sandbox /Users/dan/.pyenv/versions/3.9.7/envs/sandbox/bin/python /Users/dan/sandbox/Sam_commercial.pyTraceback (most recent call last): File "/Users/dan/sandbox/Sam_commercial.py", line 59, in <module> pv.execute()Exception: pvwattsv7 execution error. exec fail(pvwattsv7): could not open file for reading: /Users/dguittet/SAM Downloaded Weather Files/weather.csv
    ➜ sandbox /Users/dan/.pyenv/versions/3.9.7/envs/sandbox/bin/python /Users/dan/sandbox/Sam_commercial.pyTraceback (most recent call last): File "/Users/dan/sandbox/Sam_commercial.py", line 59, in <module> pv.execute()Exception: pvwattsv7 execution error. exec fail(pvwattsv7): could not open file for reading: /Users/dguittet/SAM Downloaded Weather Files/weather.csv
Please Log in or Create an account to join the conversation.
- Paul Gilman
        Less
        More
        
            
    
        - Posts: 5665
            
        
                17 Nov 2021 21:47                #10276
        by Paul Gilman
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Paul Gilman on topic SAMsimPVWattsCommercialExample.py error            
    
        Hi Dan,
Yes. You'll need to edit the 100kW_PVWatts.json file to change the value of solar_resource_file.
Best regards,
Paul.
    Yes. You'll need to edit the 100kW_PVWatts.json file to change the value of solar_resource_file.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
        Moderators: Paul Gilman    
 
  
 















