Exemple #1
0
 def test_bad_config(self):
     with self.assertRaises(Exception):
         paths = {
             'root': 'test/raw/config',
             'config': 'test/raw/config/config_bad.yaml'
         }
         paths = update_internal_paths(paths)
Exemple #2
0
###################
### ENVIRONMENT ###
###################
import os
import sys

### LOAD GSLAB MAKE
ROOT = '..'
gslm_path = os.path.join(ROOT, 'lib', 'gslab_make')

sys.path.append(gslm_path)
import gslab_make as gs

### PULL PATHS FROM CONFIG
PATHS = {'root': ROOT, 'config': os.path.join(ROOT, 'config.yaml')}
PATHS = gs.update_internal_paths(PATHS)

### LOAD CONFIG USER
PATHS = gs.update_external_paths(PATHS)
gs.update_executables(PATHS)

############
### MAKE ###
############

### START MAKE
gs.remove_dir(['input', 'external'])
gs.clear_dir(['output', 'log'])
gs.start_makelog(PATHS)

### MAKE LINKS TO INPUT AND EXTERNAL FILES
Exemple #3
0
 def test_config(self):
     paths = {
         'root': 'test/raw/config',
         'config': 'test/raw/config/config.yaml'
     }
     paths = update_internal_paths(paths)