From dcb350cd6c3e6f4c3d1765912d5bdb8e42687db1 Mon Sep 17 00:00:00 2001 From: pyahmed Date: Tue, 11 Oct 2016 07:58:16 +0200 Subject: [PATCH 1/2] Fixed multiple injections FIX Multiple injections not correctly displayed / processed --- pycorn/pycorn.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pycorn/pycorn.py b/pycorn/pycorn.py index 0ecb831..addbf66 100644 --- a/pycorn/pycorn.py +++ b/pycorn/pycorn.py @@ -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 @@ -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): From 2410efd2bfdd11858cb7c191c5a663627eaa83a6 Mon Sep 17 00:00:00 2001 From: pyahmed Date: Fri, 17 Nov 2017 06:56:45 +0100 Subject: [PATCH 2/2] Update README.rst --- README.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 94750ca..efc624b 100644 --- a/README.rst +++ b/README.rst @@ -12,10 +12,16 @@ A script extract data from .res (results) files generated by UNICORN Chromatogra News ---- -v0.18 released: +PyCORN-WEB launched: +PyCORN is now available as a web-service. Just drop your res/zip file, get a preview of the plot (generated with plotly) - adjust as needed and download a high-quality PNG file. No need to open a terminal, no Python installation etc required :-) -- FIXED: xmin being ignored when 0 -- FIXED: Files with capitalised name ending are not loaded +visit: http://pycornweb.appspot.com + + + +v0.19 released: + +- FIXED: Injection points not recognized properly (see https://github.com/pyahmed/PyCORN/issues/12) Installation @@ -42,4 +48,4 @@ Usage License ------- -- GPLv2 see docs/LICENSE.txt \ No newline at end of file +- GPLv2 see docs/LICENSE.txt