Skip to content

Commit

Permalink
STY: PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
ke-zhang-rd committed Jan 11, 2019
1 parent a4f1637 commit e69bbb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nslsii/ad33.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class StatsPluginV33(PluginBase):
Due to https://github.com/areaDetector/ADCore/pull/333
"""
_default_suffix = 'Stats1:'
_suffix_re = 'Stats\d:'
_suffix_re = 'Stats\\d:'
_html_docs = ['NDPluginStats.html']
_plugin_type = 'NDPluginStats'

Expand Down
2 changes: 1 addition & 1 deletion nslsii/common/ipynb/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def view_frame(i, vmin, vmax):

plt.show()

interact(view_frame, i=(0, n-1), vmin=minmax, vmax=minmax)
interact(view_frame, i=(0, n - 1), vmin=minmax, vmax=minmax)


def image_stack_to_movie(images, frames=None, vmin=None, vmax=None,
Expand Down
6 changes: 3 additions & 3 deletions nslsii/common/ipynb/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ def get_sys_info():

mem = psutil.virtual_memory()
html += '<tr><td>Total System Memory</td>'
html += '<td>{:.4} Mb</td></td>'.format(mem.total/1024**3)
html += '<td>{:.4} Mb</td></td>'.format(mem.total / 1024**3)
html += '<tr><td>Total Memory Used</td>'
html += '<td>{:.4} Mb</td></td>'.format(mem.used/1024**3)
html += '<td>{:.4} Mb</td></td>'.format(mem.used / 1024**3)
html += '<tr><td>Total Memory Free</td>'
html += '<td>{:.4} Mb</td></td>'.format(mem.free/1024**3)
html += '<td>{:.4} Mb</td></td>'.format(mem.free / 1024 * 3)

html += '<tr><td>Number of CPU Cores</td><td>{}</td></tr>'.format(
psutil.cpu_count())
Expand Down

0 comments on commit e69bbb2

Please sign in to comment.