Skip to content

Commit

Permalink
Merge pull request #109 from Phelimb/master
Browse files Browse the repository at this point in the history
Log errors to stderr not stdout
  • Loading branch information
nickloman committed Dec 9, 2016
2 parents b16ed1a + 1369375 commit beb22ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poretools/Fast5File.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def get_duration(self):
try:
return int(node.attrs['duration']) / self.get_sample_frequency()
except Exception, e:
print e
logger.error(str(e))
pass

node = self.find_event_timing_block()
Expand All @@ -562,7 +562,7 @@ def get_start_time(self):
frequency = int(self.get_sample_frequency())
return int(exp_start_time) + int(node.attrs['start_time'] / frequency)
except Exception, e:
print e
logger.error(str(e))
pass

node = self.find_event_timing_block()
Expand Down

0 comments on commit beb22ad

Please sign in to comment.