本文整理汇总了Python中vcs.VCS_validation_functions类的典型用法代码示例。如果您正苦于以下问题:Python VCS_validation_functions类的具体用法?Python VCS_validation_functions怎么用?Python VCS_validation_functions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VCS_validation_functions类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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()
开发者ID:Xunius,项目名称:uvcdat,代码行数:7,代码来源:thermo.py
示例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()
开发者ID:chaosphere2112,项目名称:uvcdat,代码行数:9,代码来源:thermo.py
示例3: _setmixingratio
def _setmixingratio(self, value):
value = VCS_validation_functions.checkIsoline(self, "mixingratio", value)
self._mixingratio = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例4: _setpseudoadiabats
def _setpseudoadiabats(self, value):
value = VCS_validation_functions.checkIsoline(self, "pseudoadiabats", value)
self._pseudoadiabats = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例5: _setdryadiabats
def _setdryadiabats(self, value):
value = VCS_validation_functions.checkIsoline(self, "dryadiabats", value)
self._dryadiabats = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例6: _setdrawisobars
def _setdrawisobars(self, value):
value = VCS_validation_functions.checkOnOff(self, 'drawisobars', value)
self._drawisobars = value
开发者ID:chaosphere2112,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例7: _setname
def _setname(self, value):
value = VCS_validation_functions.checkname(self, "name", value)
self._name = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例8: _setdetail
def _setdetail(self, value):
value = VCS_validation_functions.checkIntFloat(self, "detail", value)
self._detail = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例9: _setisotherms
def _setisotherms(self, value):
value = VCS_validation_functions.checkIsoline(value)
self._isotherms = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例10: _setdrawdryadiabats
def _setdrawdryadiabats(self, value):
value = VCS_validation_functions.checkOnOff(self, "drawdryadiabats", value)
self._drawdryadiabats = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例11: _setdrawmixingratio
def _setdrawmixingratio(self, value):
value = VCS_validation_functions.checkOnOff(self, "drawmixingratio", value)
self._drawmixingratio = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例12: _setwindbarbsscales
def _setwindbarbsscales(self, value):
value = VCS_validation_functions.checkListOfNumbers(
self, "windbarbsscales", value, minelements=3, maxelements=3
)
self._windbarbsscales = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:5,代码来源:thermo.py
示例13: _setdatawc_y1
def _setdatawc_y1(self, value):
value = VCS_validation_functions.checkIntFloat(self, 'datawc_y1', value)
self._datawc_y1 = value
self.setdiagramdefs()
开发者ID:chaosphere2112,项目名称:uvcdat,代码行数:4,代码来源:thermo.py
示例14: _setdrawisothermsfilled
def _setdrawisothermsfilled(self, value):
value = VCS_validation_functions.checkOnOff(self, 'drawisothermsfilled', value)
self._drawisothermsfilled = value
开发者ID:chaosphere2112,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例15: _setisobars
def _setisobars(self, value):
value = VCS_validation_functions.checkIsoline(self, "isobars", value)
self._isobars = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例16: _setisothermsfilled
def _setisothermsfilled(self, value):
value = VCS_validation_functions.checkIsofill(self, "isothermsfilled", value)
self._isothermsfilled = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例17: _setdrawisotherms
def _setdrawisotherms(self, value):
value = VCS_validation_functions.checkOnOff(self, "drawisotherms", value)
self._drawisotherms = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例18: _setPmaxmixingratio
def _setPmaxmixingratio(self, value):
value = VCS_validation_functions.checkIntFloat(self, "Pmaxmixingratio", value)
self._Pmaxmixingratio = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
示例19: _setline
def _setline(self, value):
value = VCS_validation_functions.checkLine(self, "line", value)
if isinstance(value, str):
self._line = self.x.getline(value)
else:
self._line = value
开发者ID:Xunius,项目名称:uvcdat,代码行数:6,代码来源:thermo.py
示例20: _setlinecolor
def _setlinecolor(self, value):
value = VCS_validation_functions.checkColor(self, "linecolor", value)
self._line.color = [value]
开发者ID:Xunius,项目名称:uvcdat,代码行数:3,代码来源:thermo.py
注:本文中的vcs.VCS_validation_functions类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论