Exemple #1
0
 def _set_axes(self, value):
     """setter of axes"""
     check_var("axes", value, "[Data]")
     self._axes = value
     for obj in self._axes:
         if obj is not None:
             obj.parent = self
Exemple #2
0
 def _set_values(self, value):
     """setter of values"""
     if type(value) is list:
         try:
             value = squeeze(array(value))
         except:
             value = squeeze(value)
     check_var("values", value, "ndarray")
     self._values = value
Exemple #3
0
def _set_values(self, value):
    """setter of values"""
    if type(value) is int and value == -1:
        value = array([])
    elif type(value) is list:
        try:
            value = array(value)
        except:
            pass
    check_var("values", value, "ndarray")

    # Check dimensions
    value = squeeze(value)
    value = check_dimensions(value, self.axes)
    self._values = value
Exemple #4
0
 def _set_symmetries(self, value):
     """setter of symmetries"""
     check_var("symmetries", value, "dict")
     self._symmetries = value
Exemple #5
0
 def _set_unit(self, value):
     """setter of unit"""
     check_var("unit", value, "str")
     self._unit = value
Exemple #6
0
 def _set_name(self, value):
     """setter of name"""
     check_var("name", value, "str")
     self._name = value
Exemple #7
0
 def _set_symbol(self, value):
     """setter of symbol"""
     check_var("symbol", value, "str")
     self._symbol = value
Exemple #8
0
 def _set_FTparameters(self, value):
     """setter of FTparameters"""
     check_var("FTparameters", value, "dict")
     self._FTparameters = value
Exemple #9
0
 def _set_normalizations(self, value):
     """setter of normalizations"""
     check_var("normalizations", value, "dict")
     self._normalizations = value
Exemple #10
0
 def _set_is_components(self, value):
     """setter of is_components"""
     check_var("is_components", value, "bool")
     self._is_components = value
Exemple #11
0
 def _set_include_endpoint(self, value):
     """setter of include_endpoint"""
     check_var("include_endpoint", value, "bool")
     self._include_endpoint = value
Exemple #12
0
 def _set_number(self, value):
     """setter of number"""
     check_var("number", value, "int")
     self._number = value
Exemple #13
0
 def _set_step(self, value):
     """setter of step"""
     check_var("step", value, "float")
     self._step = value
Exemple #14
0
 def _set_final(self, value):
     """setter of final"""
     check_var("final", value, "float")
     self._final = value
Exemple #15
0
 def _set_initial(self, value):
     """setter of initial"""
     check_var("initial", value, "float")
     self._initial = value