Skip to content

Commit

Permalink
bugfix larch_genericstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Jan 7, 2015
1 parent a2c9bcf commit e47fc87
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
Binary file not shown.
Binary file not shown.
17 changes: 8 additions & 9 deletions py/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@ def assertNearlyEqual(self, x, y, sigfigs=3):


TEST_DATA = {
'MTC WORK MODE CHOICE':os.path.join(TEST_DIR,"MTCwork.elmdata"),
'MTCWORK-CSV':os.path.join(TEST_DIR,"MTC_WorkMode.csv"),
'MTCWORK-CSV-SHORT':os.path.join(TEST_DIR,"MTC_WorkMode_Short.csv"),
'TWIN CITY DEST CHOICE':os.path.join(TEST_DIR,"TwinCityQ.elmdata"),
'MSOM SIMULATION':os.path.join(TEST_DIR,"msom_sim.elmdata"),
'MICRODATA':os.path.join(TEST_DIR,"microdata.sql"),
'MICRODATA SQUEEZE':os.path.join(TEST_DIR,"microdata_squeeze.sql"),
'REFERENCE OUTPUT':os.path.join(TEST_DIR,"reference_output.txt"),
'OD SYNTH':os.path.join(TEST_DIR,"od_synth.elmd"),
'MTC WORK MODE CHOICE':os.path.join(TEST_DIR,"MTCwork.sqlite"),
# 'MTCWORK-CSV':os.path.join(TEST_DIR,"MTC_WorkMode.csv"),
# 'MTCWORK-CSV-SHORT':os.path.join(TEST_DIR,"MTC_WorkMode_Short.csv"),
# 'TWIN CITY DEST CHOICE':os.path.join(TEST_DIR,"TwinCityQ.sqlite"),
# 'MSOM SIMULATION':os.path.join(TEST_DIR,"msom_sim.elmdata"),
# 'MICRODATA':os.path.join(TEST_DIR,"microdata.sql"),
# 'MICRODATA SQUEEZE':os.path.join(TEST_DIR,"microdata_squeeze.sql"),
# 'REFERENCE OUTPUT':os.path.join(TEST_DIR,"reference_output.txt"),
'SWISSMETRO-CSV':os.path.join(TEST_DIR,"swissmetro.csv"),
}

Expand Down
16 changes: 16 additions & 0 deletions setup_common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import os, sysconfig, sys


def distutils_dir_name(dname):
"""Returns the name of a distutils build directory"""
f = "{dirname}.{platform}-{version[0]}.{version[1]}"
return f.format(dirname=dname,
platform=sysconfig.get_platform(),
version=sys.version_info)

def lib_folder():
return os.path.join('build', distutils_dir_name('lib'))

def shlib_folder():
return os.path.join('build', distutils_dir_name('lib'), 'larch')

0 comments on commit e47fc87

Please sign in to comment.