188 |
@return: the mask marking the locations of the constraints |
@return: the mask marking the locations of the constraints |
189 |
@rtype: L{escript.Scalar} |
@rtype: L{escript.Scalar} |
190 |
""" |
""" |
191 |
if not self.__location_of_constraint: self.__setOutput() |
if self.__location_of_constraint == None: self.__setOutput() |
192 |
return self.__location_of_constraint |
return self.__location_of_constraint |
193 |
|
|
194 |
def value_of_constraint(self): |
def value_of_constraint(self): |
199 |
L{value} is not given C{None} is rerturned. |
L{value} is not given C{None} is rerturned. |
200 |
@rtype: L{escript.Scalar} |
@rtype: L{escript.Scalar} |
201 |
""" |
""" |
202 |
if not self.__location_of_constraint: self.__setOutput() |
if self.__location_of_constraint == None: self.__setOutput() |
203 |
return self.__value_of_constraint |
return self.__value_of_constraint |
204 |
|
|
205 |
def __setOutput(self): |
def __setOutput(self): |
264 |
@return: the mask marking the locations of the constraints |
@return: the mask marking the locations of the constraints |
265 |
@rtype: L{escript.Vector} |
@rtype: L{escript.Vector} |
266 |
""" |
""" |
267 |
if not self.__location_of_constraint: self.__setOutput() |
if self.__location_of_constraint == None: self.__setOutput() |
268 |
return self.__location_of_constraint |
return self.__location_of_constraint |
269 |
|
|
270 |
def value_of_constraint(self): |
def value_of_constraint(self): |
275 |
L{value} is not given C{None} is rerturned. |
L{value} is not given C{None} is rerturned. |
276 |
@rtype: L{escript.Vector} |
@rtype: L{escript.Vector} |
277 |
""" |
""" |
278 |
if not self.__location_of_constraint: self.__setOutput() |
if self.__location_of_constraint == None: self.__setOutput() |
279 |
return self.__value_of_constraint |
return self.__value_of_constraint |
280 |
|
|
281 |
def __setOutput(self): |
def __setOutput(self): |