- Posts: 2
Discrepancies between SAM and PySAM results
- ALMUDENA MARINA COSTES ALVARGONZÁLEZ
- Topic Author
        Less
        More
        
            
    
        
            
        
                14 Apr 2025 05:58                #13989
        by ALMUDENA MARINA COSTES ALVARGONZÁLEZ
    
    
 	
					
                                	
			
				    
            
            
            
            
            
                                
    
                                                
    
        Discrepancies between SAM and PySAM results was created by ALMUDENA MARINA COSTES ALVARGONZÁLEZ            
    
        Good morning SAM team,
I am using the SAM 2024.12.12 and PySAM 6.0.0, but I have a problem in my code because the results of my SAM do not match with the results in PySAM. I have attached both files. In the results of PySAM, i can see that it can load 125 inputs but in the input browser I have nearly 1000.
When i use my PySAM code, with the default version of SAM, the results in SAM and PySAM match.
Could you help me with the code?
Thanks in advance, and best regards,
Almudena
    I am using the SAM 2024.12.12 and PySAM 6.0.0, but I have a problem in my code because the results of my SAM do not match with the results in PySAM. I have attached both files. In the results of PySAM, i can see that it can load 125 inputs but in the input browser I have nearly 1000.
When i use my PySAM code, with the default version of SAM, the results in SAM and PySAM match.
Could you help me with the code?
Thanks in advance, and best regards,
Almudena
Attachments:
            	      
												
            	
            	Please Log in or Create an account to join the conversation.
- Paul Gilman
        Less
        More
        
            
    
        - Posts: 5665
            
        
                17 Apr 2025 14:59                #13996
        by Paul Gilman
    
    
 	
					
                                	
			
				    
            
            
            
            
            
                                
    
                                                
    
        Replied by Paul Gilman on topic Discrepancies between SAM and PySAM results            
    
        Hi Almudena,
The best way to load inputs to a hybrid configuration from JSON is to use the 'assign()' function. See attached example, which is a modified version of your script.
This should result in the same outputs for SAM 2024.12.12 and PySAM 6.0.1.
Best regards,
Paul.
    The best way to load inputs to a hybrid configuration from JSON is to use the 'assign()' function. See attached example, which is a modified version of your script.
This should result in the same outputs for SAM 2024.12.12 and PySAM 6.0.1.
Best regards,
Paul.
Attachments:
            	      
												
            	
            	Please Log in or Create an account to join the conversation.
        Moderators: Paul Gilman    
 
  
 















