コード例 #1
0
ファイル: skymatrix.py プロジェクト: SpencerMAQ/honeybee
 def fromEpwFile(cls,
                 epwFile,
                 skyDensity=1,
                 north=0,
                 hoys=None,
                 mode=0,
                 suffix=None):
     """Create sky from an epw file."""
     return cls(Wea.fromEpwFile(epwFile),
                skyDensity,
                north,
                hoys,
                mode,
                suffix=suffix)
コード例 #2
0
# assign inputs
_epwFile = IN[0]
wea = None

try:
    from ladybug.wea import Wea
except ImportError as e:
    raise ImportError('\nFailed to import honeybee:\n\t{}'.format(e))

if _epwFile:
    wea = Wea.fromEpwFile(_epwFile)

# assign outputs to OUT
OUT = (wea, )
コード例 #3
0
ファイル: sunmatrix.py プロジェクト: zhaoxf07/honeybee-1
 def fromEpwFile(cls, epwFile, north=0, hoys=None):
     """Create sun matrix from an epw file."""
     return cls(Wea.fromEpwFile(epwFile), north, hoys)