Commit 24038437 authored by Rashad Kanavath's avatar Rashad Kanavath

COMP: fix indention in python code

parent 2e21971b
......@@ -445,13 +445,13 @@ class ApplicationProxy(object):
self.__dict__["application"].SetParameterString(groupkey, value)
def __str__(self):
return self.__dict__["application"].GetParameterAsString(self.groupkey)
return self.__dict__["application"].GetParameterAsString(self.groupkey)
def __eq__(self, other):
if not type(other) == type(self):
return (self.__str__() == other)
return (self.__str__() == other)
else:
return (isinstance(other, self.__class__) and self.__dict__ == other.__dict__)
return (isinstance(other, self.__class__) and self.__dict__ == other.__dict__)
def __ne__(self, other):
return not self.__eq__(other)
......@@ -461,10 +461,9 @@ class ApplicationProxy(object):
def __setattr__(self,attr,value):
if attr not in self.__dict__:
return self.__dict__["application"].SetParameterValue( self.groupkey + "." + attr.lower(), value )
return self.__dict__["application"].SetParameterValue( self.groupkey + "." + attr.lower(), value )
else:
return dict.__setattr__(self, attr, value)
return dict.__setattr__(self, attr, value)
}
#endif
......@@ -537,7 +536,7 @@ class ApplicationProxy(object):
elif paramType in [ParameterType_Choice]:
return ApplicationProxy(self, paramKey, value)
else:
print "Unsupported parameter type '%s' with key '%s'" %(self.GetParameterTypeAsString(paramType) ,paramKey)
print ("Unsupported parameter type '%s' with key '%s'" %(self.GetParameterTypeAsString(paramType) ,paramKey))
return
def GetParameterValue(self, paramKey):
......@@ -562,7 +561,7 @@ class ApplicationProxy(object):
elif paramType in [ParameterType_Group, ParameterType_Choice]:
return ApplicationProxy(self, paramKey)
else:
print "Unsupported parameter type '%s' with key '%s'" %(self.GetParameterTypeAsString(paramType) ,paramKey)
print ("Unsupported parameter type '%s' with key '%s'" %(self.GetParameterTypeAsString(paramType) ,paramKey))
return None
def __getattr__(self,attr):
......@@ -702,8 +701,8 @@ class ApplicationProxy(object):
elif dt == 'double':
return self.GetVectorImageAsDoubleNumpyArray_(paramKey)
else:
print "Unknown datatype '" + dt + "'. Using float instead. Available types are:"
print "int8, int16, int32, uint8, uint16, uint32, float, double"
print ("Unknown datatype '" + dt + "'. Using float instead. Available types are:")
print ("int8, int16, int32, uint8, uint16, uint32, float, double")
return self.GetVectorImageAsFloatNumpyArray_(paramKey)
def GetImageAsNumpyArray(self, paramKey, dt='float'):
......@@ -731,8 +730,8 @@ class ApplicationProxy(object):
numpy_vector_image = self.GetVectorImageAsDoubleNumpyArray_(paramKey)
else:
print "Unknown datatype '" + dt + "'. Using float instead. Available types are:"
print "int8, int16, int32, uint8, uint16, uint32, float, double"
print ("Unknown datatype '" + dt + "'. Using float instead. Available types are:")
print ("int8, int16, int32, uint8, uint16, uint32, float, double")
numpy_vector_image = self.GetVectorImageAsFloatNumpyArray_(paramKey)
if len(numpy_vector_image.shape) > 2:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment