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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyredshift
3
- Version: 1.11
3
+ Version: 1.12
4
4
  Summary: Interactive redshifting of 1D astronomical spectra (Python successor of pdlredshift / redshift.f)
5
5
  Home-page: https://github.com/karlglazebrook/pyredshift
6
6
  Author: Karl Glazebrook
@@ -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 (port of pdlredshift).",
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.11",
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(),
@@ -1,4 +1,4 @@
1
- <h1>pyredshift help</h1>
1
+ <h1>pyredshift help <span class="ver">v{version}</span></h1>
2
2
 
3
3
  <input type="radio" name="tabs" id="tab-keys" checked>
4
4
  <input type="radio" name="tabs" id="tab-lines">
@@ -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.11"
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; }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyredshift
3
- Version: 1.11
3
+ Version: 1.12
4
4
  Summary: Interactive redshifting of 1D astronomical spectra (Python successor of pdlredshift / redshift.f)
5
5
  Home-page: https://github.com/karlglazebrook/pyredshift
6
6
  Author: Karl Glazebrook
File without changes
File without changes
File without changes
File without changes