Param Repr should contain is_writable not writable
This commit is contained in:
		
							parent
							
								
									e4c9f047d0
								
							
						
					
					
						commit
						08ecbb461d
					
				@ -57,7 +57,7 @@ print(f"Rods Position Ordered: {nucon.RODS_POS_ORDERED.value}")
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# The repr of an attribute contains all contained info
 | 
					# The repr of an attribute contains all contained info
 | 
				
			||||||
nucon.CORE_TEMP
 | 
					nucon.CORE_TEMP
 | 
				
			||||||
# >> NuconParameter(id='CORE_TEMP', value=500.0, param_type=float, writable=False)
 | 
					# >> NuconParameter(id='CORE_TEMP', value=500.0, param_type=float, is_writable=False)
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## API Reference
 | 
					## API Reference
 | 
				
			||||||
 | 
				
			|||||||
@ -99,7 +99,7 @@ class NuconParameter:
 | 
				
			|||||||
        self.nucon.set(self, new_value, force)
 | 
					        self.nucon.set(self, new_value, force)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __repr__(self):
 | 
					    def __repr__(self):
 | 
				
			||||||
        return f"NuconParameter(id='{self.id}', value={self.value}, param_type={self.param_type.__name__}, writable={self.is_writable})"
 | 
					        return f"NuconParameter(id='{self.id}', value={self.value}, param_type={self.param_type.__name__}, is_writable={self.is_writable})"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __str__(self):
 | 
					    def __str__(self):
 | 
				
			||||||
        return self.id
 | 
					        return self.id
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user