Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Commit

Permalink
Fix pheno import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ceholden committed Jan 5, 2016
1 parent be730f4 commit feb4b43
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tstools/src/ts_driver/drivers/timeseries_yatsm.py
Expand Up @@ -110,9 +110,9 @@ class YATSMTimeSeries(timeseries_stacked.StackedTimeSeries):
'Commission test alpha']

def __init__(self, location, config=None):
super(YATSMTimeSeries, self).__init__(location, config=config)
# Check for YATSM imports
self._check_yatsm()
super(YATSMTimeSeries, self).__init__(location, config=config)

# Find extra metadata
self._init_metadata()
Expand Down Expand Up @@ -519,15 +519,13 @@ def _check_yatsm(self):
""" Check if YATSM is available
"""
try:
global yatsm
global CCDCesque, postprocess
global harm
global get_valid_mask
global yatsm, CCDCesque, postprocess, harm, get_valid_mask
import yatsm
from ..mixins.yatsm_ccdcesque import version_kwargs
from yatsm.algorithms import CCDCesque, postprocess
from yatsm._cyprep import get_valid_mask
from yatsm.regression.transforms import harm
global version_kwargs
from ..mixins.yatsm_ccdcesque import version_kwargs
except ImportError as e:
raise ImportError('Could not import YATSM because it could not '
'import a dependency (%s)' % e.message)
Expand Down

0 comments on commit feb4b43

Please sign in to comment.