Skip to content

Commit

Permalink
Merge pull request #16 from pyahmed/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
pyahmed committed Nov 17, 2017
2 parents 4eb9361 + b5f7b99 commit d7747b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ PyCORN is now available as a web-service. Just drop your res/zip file, get a pre

visit: http:https://pycornweb.appspot.com

=======

v0.19 released:

v0.18 released:

- FIXED: xmin being ignored when 0
- FIXED: Files with capitalised name ending are not loaded
- FIXED: Injection points not recognized properly (see https://github.com/pyahmed/PyCORN/issues/12)


Installation
Expand Down
12 changes: 7 additions & 5 deletions pycorn/pycorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PyCORN - script to extract data from .res (results) files generated
by UNICORN Chromatography software supplied with ÄKTA Systems
(c)2014-2016 - Yasar L. Ahmed
v0.18
v0.18b
'''

from __future__ import print_function
Expand Down Expand Up @@ -235,14 +235,16 @@ def inject_det(self, show=False):
'''
Finds injection points - required for adjusting retention volume
'''
inject_ids = [self.Inject_id, self.Inject_id2]
injections = []
if self.injection_points == None:
self.injection_points = [0.0]
inject_ids = [self.Inject_id, self.Inject_id2]
for i in self.values():
if i['magic_id'] in inject_ids:
injection = self.meta1_read(i, show=show, do_it_for_inj_det=True)[0][0]
if injection != 0.0:
self.injection_points.append(injection)
injections = self.meta1_read(i, show=show, do_it_for_inj_det=True)
for i in injections:
if i[0] != 0.0:
self.injection_points.append(i[0])
if show:
print(" ---- \n Injection points: \n # \t ml")
for x, y in enumerate(self.injection_points):
Expand Down

0 comments on commit d7747b6

Please sign in to comment.