Skip to content

Commit

Permalink
CLN: ran pre-commit and removed % from plotting relative noise
Browse files Browse the repository at this point in the history
  • Loading branch information
yb6599 committed Sep 12, 2024
1 parent dbb166f commit a26724a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gen_experiments/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def addn(x):
* (1 + np.sin(np.linspace(0, 100, 1024) - 0.5)),
"rel_noise": 0.1,
"t_end": 100,
"dt": 0.4
"dt": 0.4,
}
),
}
Expand Down
2 changes: 1 addition & 1 deletion src/gen_experiments/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def plot_pde_training_data(x_train, x_true, x_smooth, rel_noise):
axs[0].set(title="True Data")
fig.colorbar(im0, ax=axs[0])
im1 = axs[1].imshow(x_train, vmin=0, vmax=x_true.max())
axs[1].set(title=f"Noisy Data with {rel_noise} % Relative Noise")
axs[1].set(title=f"Noisy Data with {rel_noise} Relative Noise")
fig.colorbar(im1, ax=axs[1])
im2 = axs[2].imshow(x_smooth, vmin=0, vmax=x_smooth.max())
axs[2].set(title="Smoothed Data")
Expand Down

0 comments on commit a26724a

Please sign in to comment.