本文整理汇总了Python中vcs.VCS_validation_functions类的典型用法代码示例。如果您正苦于以下问题:Python VCS_validation_functions类的具体用法?Python VCS_validation_functions怎么用?Python VCS_validation_functions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VCS_validation_functions类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _setskewness
def _setskewness(self, value):
VCS_validation_functions.checkName(self, "skewness", value)
if self.type[:2] != "sk":
raise ValueError("skewness can only be set for skewT type diagrams")
value = VCS_validation_functions.checkIntFloat(self, "skewness", value)
self._skewness = value
self.setdiagramdefs()
示例2: _settype
def _settype(self, value):
VCS_validation_functions.checkName(self, 'type', value)
if not isinstance(value, str):
raise ValueError('Type should be a string')
value = value.lower()
if not value[:2] in ['sk', 'te', 'st', 'cu', 'em']:
raise ValueError('Error Thermodynamic Diagram type must skewT, Tephigram, Emmagram, Stuve or Custom')
self._type = value
self.setdiagramdefs()
示例3: _setmixingratio
def _setmixingratio(self, value):
value = VCS_validation_functions.checkIsoline(self, "mixingratio", value)
self._mixingratio = value
示例4: _setpseudoadiabats
def _setpseudoadiabats(self, value):
value = VCS_validation_functions.checkIsoline(self, "pseudoadiabats", value)
self._pseudoadiabats = value
示例5: _setdryadiabats
def _setdryadiabats(self, value):
value = VCS_validation_functions.checkIsoline(self, "dryadiabats", value)
self._dryadiabats = value
示例6: _setdrawisobars
def _setdrawisobars(self, value):
value = VCS_validation_functions.checkOnOff(self, 'drawisobars', value)
self._drawisobars = value
示例7: _setname
def _setname(self, value):
value = VCS_validation_functions.checkname(self, "name", value)
self._name = value
示例8: _setdetail
def _setdetail(self, value):
value = VCS_validation_functions.checkIntFloat(self, "detail", value)
self._detail = value
示例9: _setisotherms
def _setisotherms(self, value):
value = VCS_validation_functions.checkIsoline(value)
self._isotherms = value
示例10: _setdrawdryadiabats
def _setdrawdryadiabats(self, value):
value = VCS_validation_functions.checkOnOff(self, "drawdryadiabats", value)
self._drawdryadiabats = value
示例11: _setdrawmixingratio
def _setdrawmixingratio(self, value):
value = VCS_validation_functions.checkOnOff(self, "drawmixingratio", value)
self._drawmixingratio = value
示例12: _setwindbarbsscales
def _setwindbarbsscales(self, value):
value = VCS_validation_functions.checkListOfNumbers(
self, "windbarbsscales", value, minelements=3, maxelements=3
)
self._windbarbsscales = value
示例13: _setdatawc_y1
def _setdatawc_y1(self, value):
value = VCS_validation_functions.checkIntFloat(self, 'datawc_y1', value)
self._datawc_y1 = value
self.setdiagramdefs()
示例14: _setdrawisothermsfilled
def _setdrawisothermsfilled(self, value):
value = VCS_validation_functions.checkOnOff(self, 'drawisothermsfilled', value)
self._drawisothermsfilled = value
示例15: _setisobars
def _setisobars(self, value):
value = VCS_validation_functions.checkIsoline(self, "isobars", value)
self._isobars = value