Skip to content

Commit

Permalink
minor FLTD-149
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Paganelli committed Oct 14, 2016
1 parent fe8969b commit 1655533
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions misura/canon/plugin/dataimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def __init__(self):
self.log_ref = False
self.conversion_start_time = time()

def post_open_file(self, navigator, *a, **k):
return False

def log(self, msg, priority=10):
# TODO: check zerotime
logging.info(msg)
Expand Down Expand Up @@ -169,10 +172,11 @@ def create_dataset(outFile, node_path, opt, timecol, data, cls=reference.Array):
def search_registry(filename):
"""Find a matching converter for filename"""
for converter in data_importers:
if fnmatch(filename, converter.file_pattern):
print 'Found converter', filename, converter.file_pattern
return converter
print 'No converter found', filename
for pattern in converter.file_pattern.split(';'):
if fnmatch(filename, pattern):
logging.debug('Found converter', filename, converter.file_pattern, pattern)
return converter
logging.error('No converter found', filename)
return False

def get_converter(path):
Expand Down

0 comments on commit 1655533

Please sign in to comment.