-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
3,420 additions
and
1,469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# coding=utf-8 | ||
"""Module for computing thermal comfort. | ||
Properties: | ||
SOLARCALSPLINES: A dictionary with two keys: 'standing' and 'seated'. | ||
Each value for these keys is a 2D matrix of projection factors | ||
for human geometry. Each row refers to an degree of azimuth and each | ||
colum refers to a degree of altitude. | ||
""" | ||
|
||
from ._loadmannequin import load_solarcal_splines | ||
|
||
SOLARCALSPLINES = load_solarcal_splines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# coding=utf-8 | ||
"""Load data that accounts for human geometry. | ||
This includes mannequin geometry and solarcal splines. | ||
""" | ||
|
||
from ..futil import csv_to_num_matrix | ||
|
||
from os.path import dirname, abspath | ||
import inspect | ||
|
||
|
||
def load_solarcal_splines(): | ||
try: | ||
cur_dir = dirname(abspath(inspect.getfile(inspect.currentframe()))) | ||
solarcal_splines = { | ||
'seated': csv_to_num_matrix(cur_dir + '/mannequindata/seatedspline.csv'), | ||
'standing': csv_to_num_matrix(cur_dir + '/mannequindata/standingspline.csv')} | ||
except IOError: | ||
solarcal_splines = {} | ||
print ('Failed to import projection factor splines from CSV.' | ||
'\nA simpler interoplation method for Solarcal will be used.') | ||
return solarcal_splines |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# coding=utf-8 | ||
"""Comfort datacollection base object.""" | ||
|
||
|
||
class ComfortDataCollection(object): | ||
"""Thermal comfort datacollection base class.""" | ||
_model = None | ||
|
||
def __init__(self): | ||
self._calc_length = 0 | ||
self._is_computed = False | ||
|
||
@property | ||
def comfort_model(self): | ||
"""Return the name of the model to which the comfort datacollection belongs.""" | ||
return self._model |
Oops, something went wrong.