- Timestamp:
- Aug 31, 2018, 2:07:57 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 2f4cc73
- Parents:
- 7c82d52
- Location:
- python
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
python/EcFlexpart.py
r54a8a01 rdda0e9d 852 852 ''' 853 853 854 table128 = init128(c.ecmwfdatadir + 855 '/grib_templates/ecmwf_grib1_table_128') 854 table128 = init128(_config.PATH_GRIBTABLE) 856 855 wrfpars = to_param_id('sp/mslp/skt/2t/10u/10v/2d/z/lsm/sst/ci/sd/\ 857 856 stl1/stl2/stl3/stl4/swvl1/swvl2/swvl3/swvl4', … … 1100 1099 ''' 1101 1100 1102 table128 = init128(c.ecmwfdatadir + 1103 '/grib_templates/ecmwf_grib1_table_128') 1101 table128 = init128(_config.PATH_GRIBTABLE) 1104 1102 pars = to_param_id(self.params['OG_acc_SL'][0], table128) 1105 1103 index_keys = ["date", "time", "step"] -
python/_config.py
r54a8a01 rdda0e9d 26 26 import inspect 27 27 28 29 28 _VERSION_STR = '7.1' 30 31 29 32 30 # add path to pythonpath … … 35 33 if LOCAL_PYTHON_PATH not in sys.path: 36 34 sys.path.append(LOCAL_PYTHON_PATH) 35 36 # path to gribtable 37 PATH_GRIBTABLE = LOCAL_PYTHON_PATH + '/templates/ecmwf_grib1_table_128' 38 -
python/pythontest/TestPathes.py
r067a0c3 rdda0e9d 2 2 # -*- coding: utf-8 -*- 3 3 4 import os 5 import sys 4 6 import pytest 5 7 8 sys.path.append("../") 9 import _config 6 10 7 def test_vtable():8 print "vtable test"9 11 12 def test_path_vtable(): 13 assert os.path.exists(_config.PATH_GRIBTABLE) == 1 14 15 def test_file_vtable(): 16 assert os.path.isfile(_config.PATH_GRIBTABLE) == 1 17
Note: See TracChangeset
for help on using the changeset viewer.