Skip to content

Commit

Permalink
fixes #208
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Nov 21, 2019
1 parent 8a4da72 commit ae1155c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ Production
* `#213 <https://github.com/prjemian/spec2nexus/issues/213>`_
copy data file to gallery

* `#208 <https://github.com/prjemian/spec2nexus/issues/208>`_
add more diagnostics to gallery web page comments

* `#191 <https://github.com/prjemian/spec2nexus/issues/191>`_
write each positioner to NXpositioner group

* `#188 <https://github.com/prjemian/spec2nexus/issues/188>`_
catenate continued lines before parsing data

Expand Down
13 changes: 10 additions & 3 deletions src/spec2nexus/specplot_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,16 @@


import datetime
import getpass
import json
import logging
import os
import shutil
import socket
import sys


from . import __version__
from . import spec
from . import specplot

Expand Down Expand Up @@ -415,9 +419,12 @@ def buildIndexHtml(specFile, plotted_scans, problem_scans):
"""
baseSpecFile = os.path.basename(specFile)
comment = "\n"
comment += " written by: %s\n" % sys.argv[0]
comment += " date: %s\n" % timestamp()
comment += "\n"
comment += " written by: %s\n" % sys.argv[0]
comment += " date: %s\n" % timestamp()
comment += " workstation: %s\n" % socket.gethostname()
comment += " username: %s\n" % getpass.getuser()
comment += " version: %s\n" % __version__
comment += " pid: %d\n" % os.getpid()

href = "<a href='%s'>%s</a>" % (baseSpecFile, specFile)
html = "<html>\n"
Expand Down

0 comments on commit ae1155c

Please sign in to comment.