pyredshift 1.11__tar.gz → 1.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyredshift-1.11 → pyredshift-1.12}/PKG-INFO +1 -1
- {pyredshift-1.11 → pyredshift-1.12}/pyredshift +2 -1
- {pyredshift-1.11 → pyredshift-1.12}/setup.py +1 -1
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift/pyredshift-help.html +1 -1
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift/redshift.py +4 -2
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift.egg-info/PKG-INFO +1 -1
- {pyredshift-1.11 → pyredshift-1.12}/LICENSE +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/README.md +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/pyproject.toml +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/setup.cfg +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift/__init__.py +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift/pyredshift.lines +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift.egg-info/SOURCES.txt +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift.egg-info/dependency_links.txt +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift.egg-info/requires.txt +0 -0
- {pyredshift-1.11 → pyredshift-1.12}/src/pyredshift.egg-info/top_level.txt +0 -0
|
@@ -266,7 +266,8 @@ def main():
|
|
|
266
266
|
prog="pyredshift",
|
|
267
267
|
usage="pyredshift [-help] [-f FORMAT] [-z REDSHIFT] [--retro] "
|
|
268
268
|
"[--microns] file",
|
|
269
|
-
description="Interactive redshifting of 1D spectra
|
|
269
|
+
description="Interactive redshifting of 1D spectra "
|
|
270
|
+
"(port of pdlredshift), v%s." % redshift_module.__version__,
|
|
270
271
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
271
272
|
# format documentation lives in the module (FORMAT_HELP) so the
|
|
272
273
|
# -h epilog and the '?' help page cannot drift apart
|
|
@@ -13,7 +13,7 @@ from setuptools import setup
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name="pyredshift",
|
|
16
|
-
version="1.
|
|
16
|
+
version="1.12",
|
|
17
17
|
description="Interactive redshifting of 1D astronomical spectra "
|
|
18
18
|
"(Python successor of pdlredshift / redshift.f)",
|
|
19
19
|
long_description=open("README.md").read(),
|
|
@@ -52,6 +52,7 @@ V1.10 - The cursor works over the whole window, as PGPLOT's did: keys and
|
|
|
52
52
|
V1.11 - Proper file-format documentation: a per-format table in the
|
|
53
53
|
script's -h and a File formats section in the help page, both
|
|
54
54
|
generated from FORMAT_HELP here so they cannot drift apart.
|
|
55
|
+
V1.12 - The version number is shown by -h/-help and on the help page.
|
|
55
56
|
"""
|
|
56
57
|
|
|
57
58
|
import ctypes
|
|
@@ -91,7 +92,7 @@ try:
|
|
|
91
92
|
except AttributeError:
|
|
92
93
|
pass
|
|
93
94
|
|
|
94
|
-
__version__ = "1.
|
|
95
|
+
__version__ = "1.12"
|
|
95
96
|
|
|
96
97
|
C_LIGHT = 2.99792458e8 # m/s
|
|
97
98
|
|
|
@@ -267,7 +268,7 @@ def help_html():
|
|
|
267
268
|
if HELP_RAW is None:
|
|
268
269
|
return None
|
|
269
270
|
return HELP_RAW.format(template=TEMPLATE_NAME, linelist=linelist_html(),
|
|
270
|
-
formats=formats_html())
|
|
271
|
+
formats=formats_html(), version=__version__)
|
|
271
272
|
|
|
272
273
|
|
|
273
274
|
# ---------------------------------------------------------------------------
|
|
@@ -974,6 +975,7 @@ body { font-family: -apple-system, "Helvetica Neue", sans-serif;
|
|
|
974
975
|
max-width: 46em; margin: 2em auto; padding: 0 1em;
|
|
975
976
|
color: %(fg)s; background: %(bg)s; line-height: 1.45; }
|
|
976
977
|
h1 { font-size: 1.5em; border-bottom: 2px solid %(rule)s; padding-bottom: 0.2em; }
|
|
978
|
+
h1 .ver { font-size: 0.6em; font-weight: normal; color: %(accent)s; }
|
|
977
979
|
h2 { font-size: 1.15em; color: %(accent)s; margin-top: 1.4em; }
|
|
978
980
|
table { border-collapse: collapse; margin: 0.5em 0; }
|
|
979
981
|
th, td { border: 1px solid %(rule)s; padding: 0.25em 0.7em; text-align: left; }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|