Skip to content

Commit

Permalink
MNT #329 Codacy again
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 4, 2020
1 parent f050f3b commit 9fe8ad1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apstools/filewriters.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ class FileWriterCallbackBase:
# convention: methods written in alphabetical order

def __init__(self, *args, **kwargs):
""" -tba- """
"""-tba-"""
self.clear()
self.xref = dict(
bulk_events = self.bulk_events,
Expand Down Expand Up @@ -889,7 +889,7 @@ def trim(value, length=60):
# - - - - - - - - - - - - - - -

def bulk_events(self, doc):
""" -tba- """
"""-tba-"""
if not self.scanning:
return
logger.info("not handled yet")
Expand Down Expand Up @@ -1022,7 +1022,7 @@ class NXWriterBase(FileWriterCallbackBase):
Almost all metadata keys (additional attributes added to the run's
``start`` document) are completely optional. Certain keys are
specified by the RunEngine, some keys are specified by the plan
(or plan support methods), and other keys are supplied by the
(or plan support methods), and other keys are supplied by the
user or the instrument team.
These are the keys used by this callback to help guide how
Expand Down Expand Up @@ -1184,7 +1184,7 @@ def get_stream_link(self, signal, stream=None, ref=None):
return self.root[h5_addr]

def h5string(self, text):
"""format string for h5py interface"""
"""Format string for h5py interface."""
if isinstance(text, (tuple, list)):
return [self.h5string(t) for t in text]
text = text or ""
Expand Down Expand Up @@ -1490,6 +1490,7 @@ def write_streams(self, parent):
data from all the bluesky streams
"""
# TODO: reduce complexity of this method
bluesky = self.create_NX_group(parent, "bluesky_streams:NXnote")
for stream_name, uids in self.streams.items():
if len(uids) != 1:
Expand Down

0 comments on commit 9fe8ad1

Please sign in to comment.