Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#149)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 21.12b0 → 22.1.0](psf/black@21.12b0...22.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 1, 2022
1 parent 67b7e55 commit 84cefbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.1.0
hooks:
- id: black
args: [--line-length=99, --safe]
Expand Down
2 changes: 1 addition & 1 deletion attune/_holistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ def resid(inps):


def _gauss(center, sigma, amplitude):
return lambda x: amplitude * np.exp(-1 / 2 * (x - center) ** 2 / sigma ** 2)
return lambda x: amplitude * np.exp(-1 / 2 * (x - center) ** 2 / sigma**2)
6 changes: 3 additions & 3 deletions attune/_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def plot_intensity(
ax.plot(new_tune.independent, ypoints, **instrument_plot_kwargs)
ax.axhline(0, **prior_instrument_plot_kwargs)
wt.artists.plot_gridlines()
ax.set_ylabel(fr"$\mathsf{{\Delta {tune}}}$")
ax.set_ylabel(rf"$\mathsf{{\Delta {tune}}}$")
ax.set_xlabel(data.axes[0].label)
ax.set_xlim(instrument[arrangement].ind_min, instrument[arrangement].ind_max)

Expand Down Expand Up @@ -103,7 +103,7 @@ def plot_setpoint(
ax.plot(instrument[arrangement][tune].independent, ypoints, **instrument_plot_kwargs)
ax.axhline(0, **prior_instrument_plot_kwargs)
wt.artists.plot_gridlines()
ax.set_ylabel(fr"$\mathsf{{\Delta {tune}}}$")
ax.set_ylabel(rf"$\mathsf{{\Delta {tune}}}$")
ax.set_xlabel(data.axes[0].label)
ax.set_xlim(instrument[arrangement].ind_min, instrument[arrangement].ind_max)

Expand Down Expand Up @@ -135,7 +135,7 @@ def plot_tune_test(data, channel, used_offsets, raw_offsets=None):
ax.grid()

ax.set_xlabel(data.axes[0].label)
ax.set_ylabel(fr"$\mathsf{{\Delta}}$ {data.axes[0].label}")
ax.set_ylabel(rf"$\mathsf{{\Delta}}$ {data.axes[0].label}")

# colorbar
cax = plt.subplot(gs[:, -1])
Expand Down

0 comments on commit 84cefbc

Please sign in to comment.