Skip to content

Commit 4f13d39

Browse files
committed
Changes for PyPI
- Changed readme from markdown to rst - Changes to setup.py - New example plot image - Added pycorn-bin.py to scripts
1 parent 8291c27 commit 4f13d39

4 files changed

Lines changed: 38 additions & 25 deletions

File tree

README.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

README.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
PyCORN
2+
======
3+
4+
A script to extract data from UNICORN result (.res) files and plot them.
5+
6+
.. image:: https://raw.githubusercontent.com/pyahmed/PyCORN/master/samples/sample1_2009Jun16no001_plot.jpg
7+
8+
9+
A script to extract data from .res (results) files generated by UNICORN
10+
Chromatography software supplied with AKTA Systems. This script will
11+
find all data blocks, extract the data and write out csv-files. If you
12+
have matplotlib installed it will also plot all the curves including
13+
fractions if present. Plots can be saved in any format supported by
14+
matplotlib (default is pdf).
15+
16+
Limitations:
17+
18+
- See https://github.com/pyahmed/PyCORN/issues
19+
20+
Requirements:
21+
22+
- Python 2.7 or 3.x (Tested on Windows 7 / Mac OSX)
23+
- optional: working matplotlib installation (for plotting)
24+
25+
Usage:
26+
27+
- See docs/USAGE.txt
28+
29+
License:
30+
31+
- GPLv2 see docs/LICENSE.txt

examplescripts/pycorn-bin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def plotterX(inp,fname):
236236
plot_file = fname[:-4] + "_" + internal_run_name + "_plot." + args.format
237237
plt.savefig(plot_file, bbox_inches='tight', dpi=args.dpi)
238238
print("Plot saved to: " + plot_file)
239+
plt.clf()
239240

240241
def data_writer1(fname, inp):
241242
'''

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
try:
23
from setuptools import setup
34
except ImportError:
@@ -6,9 +7,12 @@
67

78
setup(
89
name='pycorn',
9-
version='0.1dev0',
10+
version='0.13',
11+
author='Yasar L. Ahmed',
1012
packages=['pycorn',],
13+
scripts=['examplescripts/pycorn-bin.py'],
1114
license='GNU General Public License v2 (GPLv2)',
12-
long_description=open('README.md').read(),
15+
description='A script to extract data from UNICORN result (res) files',
16+
long_description=open('README.rst').read(),
1317
url='https://github.com/pyahmed/PyCORN',
1418
)

0 commit comments

Comments
 (0)