Skip to content

Commit c983b5f

Browse files
committed
formatting
1 parent 72ee8a2 commit c983b5f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/example_average_waveforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def extract_snippets(*, traces: np.ndarray, times: np.ndarray, snippet_len: Tupl
6262

6363

6464
def compute_average_waveform(*, recording: si.BaseRecording, sorting: si.BaseSorting, unit_id: int):
65-
if hasattr(recording, 'has_scaleable_traces') and callable(getattr(recording, 'has_scaleable_traces')):
65+
if hasattr(recording, "has_scaleable_traces") and callable(getattr(recording, "has_scaleable_traces")):
6666
scalable = recording.has_scaleable_traces()
67-
elif hasattr(recording, 'has_scaled') and callable(getattr(recording, 'has_scaled')):
67+
elif hasattr(recording, "has_scaled") and callable(getattr(recording, "has_scaled")):
6868
scalable = recording.has_scaled()
6969
else:
7070
scalable = False

examples/example_plotly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def main():
1212

1313

1414
def example_plotly():
15-
fig = go.Figure(data=[go.Scatter(x=[1, 2, 3, 4], y=[10, 11, 12, 13], mode='markers')])
15+
fig = go.Figure(data=[go.Scatter(x=[1, 2, 3, 4], y=[10, 11, 12, 13], mode="markers")])
1616
view = vv.PlotlyFigure(fig=fig)
1717
return view
1818

sortingview/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This file was automatically generated by jinjaroot. Do not edit directly.
2-
__version__ = '0.14.0a1'
2+
__version__ = "0.14.0a1"

tests/test_average_waveforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def extract_snippets(*, traces: np.ndarray, times: np.ndarray, snippet_len: Tupl
4949

5050

5151
def compute_average_waveform(*, recording: si.BaseRecording, sorting: si.BaseSorting, unit_id: int):
52-
if hasattr(recording, 'has_scaleable_traces') and callable(getattr(recording, 'has_scaleable_traces')):
52+
if hasattr(recording, "has_scaleable_traces") and callable(getattr(recording, "has_scaleable_traces")):
5353
scalable = recording.has_scaleable_traces()
54-
elif hasattr(recording, 'has_scaled') and callable(getattr(recording, 'has_scaled')):
54+
elif hasattr(recording, "has_scaled") and callable(getattr(recording, "has_scaled")):
5555
scalable = recording.has_scaled()
5656
else:
5757
scalable = False

0 commit comments

Comments
 (0)