Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaust committed Feb 7, 2024
1 parent e6c3d61 commit bda5e93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acoustic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10370,7 +10370,7 @@
" return wf_E1s\n",
"\n",
"# Determine E1 from the upsampled windowed waveforms\n",
"window = signal.tukey(250, 20/250)\n",
"window = signal.windows.tukey(250, 20/250)\n",
"upsampled_wfs, upsampled_wfs_t = signal.resample(window*curves20B['WF2'], 2500, wf_t, axis=1)\n",
"k_window = 365 + np.arange(-20, 21)\n",
"wf2_E1 = waveform_E1(upsampled_wfs, k_window)\n",
Expand Down Expand Up @@ -10424,7 +10424,7 @@
"source": [
"fig, axes = plt.subplots(ncols=2, figsize=(9,4))\n",
"\n",
"cmap = copy.copy(mpl.cm.get_cmap('viridis'))\n",
"cmap = copy.copy(mpl.colormaps['viridis'])\n",
"cmap.set_bad(cmap.colors[0])\n",
"\n",
"# Plot a 2D histogram of E_1 values against the values from the CBL channel, and show the scaling\n",
Expand Down Expand Up @@ -16469,7 +16469,7 @@
],
"source": [
"# Get a colormap that ensures that histogram bins with zero occurrences still have a colour\n",
"cmap = copy.copy(mpl.cm.get_cmap('viridis'))\n",
"cmap = copy.copy(mpl.colormaps['viridis'])\n",
"cmap.set_bad(cmap.colors[0])\n",
"\n",
"# Plot the 2D histogram\n",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ matplotlib==3.8.2
scipy==1.12.0
notebook==7.0.7
azure-storage-blob==12.19.0
pyarrow==15.0.0 # suppresses deprecation warning by pandas
fonttools>=4.43.0 # not directly required, pinned by Snyk to avoid a vulnerability
ipython>=8.10.0 # not directly required, pinned by Snyk to avoid a vulnerability
pillow>=10.2.0 # not directly required, pinned by Snyk to avoid a vulnerability
Expand Down

0 comments on commit bda5e93

Please sign in to comment.