- save pdf with some plots

- calculate offset time for each carpet
- globbing for Windows
- close files when needed
- skip carpets and plots for files without track
This commit is contained in:
Wim Pomp
2022-11-21 14:07:54 +01:00
parent 21b0d81e8d
commit 5afa20b78a
3 changed files with 98 additions and 16 deletions

View File

@@ -1,11 +1,24 @@
import os
import setuptools
version = '2022.11.0'
with open('README.md', 'r') as fh:
long_description = fh.read()
with open(os.path.join(os.path.dirname(__file__), 'issfile', '_version.py'), 'w') as f:
f.write(f"__version__ = '{version}'\n")
try:
with open(os.path.join(os.path.dirname(__file__), '.git', 'HEAD')) as g:
head = g.read().split(':')[1].strip()
with open(os.path.join(os.path.dirname(__file__), '.git', head)) as h:
f.write("__git_commit_hash__ = '{}'\n".format(h.read().rstrip('\n')))
except Exception:
f.write(f"__git_commit_hash__ = 'unknown'\n")
setuptools.setup(
name='issfile',
version='2022.10.4',
version=version,
author='Wim Pomp @ Lenstra lab NKI',
author_email='w.pomp@nki.nl',
description='Open ISS files.',
@@ -19,6 +32,6 @@ setuptools.setup(
'Operating System :: OS Independent',
],
python_requires='>=3.8',
install_requires=['numpy', 'tqdm', 'pyyaml', 'tiffwrite>=2022.10.2'],
install_requires=['numpy', 'matplotlib', 'tqdm', 'pyyaml', 'tiffwrite>=2022.10.2'],
entry_points={'console_scripts': ['iss2tiff=issfile:main']}
)