Skip to content

Commit 10404ec

Browse files
committed
Merge pull request #11 from pyahmed/dev
v0.18
2 parents 03e2d4f + af9a721 commit 10404ec

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ A script extract data from .res (results) files generated by UNICORN Chromatogra
1212

1313
News
1414
----
15-
v0.17 released:
15+
v0.18 released:
1616

17-
- Added experimental support for extracting and plotting UNICORN6 zip bundles
17+
- FIXED: xmin being ignored when 0
18+
- FIXED: Files with capitalised name ending are not loaded
1819

1920

2021
Installation

examplescripts/pycorn-bin.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
PyCORN - script to extract data from .res (results) files generated
55
by UNICORN Chromatography software supplied with ÄKTA Systems
66
(c)2014-2016 - Yasar L. Ahmed
7-
v0.17
7+
v0.18
88
'''
9+
910
import argparse
1011
from pycorn import pc_res3
1112
from pycorn import pc_uni6
@@ -163,7 +164,7 @@ def smartscale(inp):
163164
except:
164165
KeyError
165166
frac_data = None
166-
if args.xmin:
167+
if args.xmin != None:
167168
plot_x_min = args.xmin
168169
else:
169170
if frac_data:
@@ -362,12 +363,12 @@ def main2():
362363
for fname in args.inp_res:
363364
if args.inject == None:
364365
args.inject = -1
365-
if fname[-3:] == "zip":
366+
if (fname[-3:]).lower() == "zip":
366367
fdata = pc_uni6(fname)
367368
fdata.load()
368369
fdata.xml_parse()
369370
fdata.clean_up()
370-
if fname[-3:] == "res":
371+
if (fname[-3:]).lower() == "res":
371372
fdata = pc_res3(fname, reduce = args.reduce, inj_sel=args.inject)
372373
fdata.load()
373374
if args.extract == 'csv':
@@ -386,4 +387,4 @@ def main2():
386387
if args.plot and plotting:
387388
plotterX(fdata, fname)
388389

389-
main2()
390+
main2()

pycorn/docs/CHANGES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v0.18
2+
======
3+
- FIXED: xmin being ignored when 0
4+
- FIXED: Files with capitalised name ending are not loaded
5+
16
v0.17
27
======
38
- Added experimental support for extracting and plotting UNICORN6 zip bundles
@@ -50,4 +55,4 @@ v0.11
5055

5156
v0.1
5257
======
53-
- Initial release
58+
- Initial release

pycorn/pycorn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PyCORN - script to extract data from .res (results) files generated
44
by UNICORN Chromatography software supplied with ÄKTA Systems
55
(c)2014-2016 - Yasar L. Ahmed
6-
v0.17
6+
v0.18
77
'''
88

99
from __future__ import print_function

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='pycorn',
10-
version='0.17',
10+
version='0.18',
1111
author='Yasar L. Ahmed',
1212
packages=['pycorn'],
1313
extras_require = {'plotting': ["matplotlib"], 'xlsx-output': ['xlsxwriter']},

0 commit comments

Comments
 (0)