-
Notifications
You must be signed in to change notification settings - Fork 24
Description
As mentioned by Tyler, google colab had some updates on Jan. 13th while Python reminded the same version.
It causes the conflict using some old packages or bugs to install the old packages.
After checking the contents of the old tutorials, I would like to request the following updates to run the tutorials in the new environment of Google Colab:
- Day_1/Tuto_1.2
pip install -q 'gwpy==3.0.8'
>>> pip install -q 'gwpy==3.0.11’
- Day_1/Tuto_1.3
pip install -q 'gwpy==3.0.8'
>>> pip install -q 'gwpy==3.0.11’
plot.refresh() has the bug, so I suggest to mark it.
plot.refresh() >>> # plot.refresh()
- Day_1/Tuto_1.4
! pip install -q PyCBC==2.4.0 lalsuite==7.21
>>> ! pip install -q PyCBC==2.4.1 lalsuite==7.21
- Day2/Turo_2.1-2.3
To avoid the warning messages, the following code is required to add:
import warnings
warnings.filterwarnings("ignore", "Wswiglal-redir-stdio")
import lal
- Day3/Tuto_3.1
Installation of the old packages will show the message "plotnine 0.14.5 requires matplotlib>=3.8.0"
! pip install -q bilby==2.2.2 matplotlib==3.7.3 dynesty==2.1.2 corner==2.2.2
>>> ! pip install -q bilby==2.4.0 matplotlib==3.8.0 dynesty==2.1.2 corner==2.2.2
- Day3/Tuto_3.2
! pip install -q bilby==2.2.2 matplotlib==3.7.3 dynesty==2.1.2 corner==2.2.2 gwpy==3.0.8 lalsuite==7.21
>>> ! pip install -q bilby==2.4.0 matplotlib==3.8.0 dynesty==2.1.2 corner==2.2.2 gwpy==3.0.11 lalsuite==7.22
import warnings
warnings.filterwarnings("ignore", "Wswiglal-redir-stdio")
import lal
- Day3/Tuto_3.3
! pip install -q 'corner==2.2.2' 'bilby==2.2.2' 'astropy==6.0.1'
>>> ! pip install -q 'corner==2.2.2' 'bilby==2.2.2' 'astropy==6.0.1' 'matplotlib==3.8.0'
- Tuto_A.1
! pip install -q lalsuite==7.21 pesummary==1.2.0
>>> ! pip install -q lalsuite==7.22 matplotlib==3.8.0 pesummary==1.3.4
In the Initialization, the following code is required to avoid the warning message:
import warnings
warnings.filterwarnings("ignore", "Wswiglal-redir-stdio")
import lal
- Tuto_A.3
The following code needs to be claimed again:
import warnings
warnings.filterwarnings("ignore", "Wswiglal-redir-stdio")
import lal
There is an error to plot the color bar though the contour map can still be presented.
The error message is like the following:
Error to plot the color bar
pyhough.pm.python_plot_triplets((flat_times-flat_times[0])/86400,flat_freqs,flat_pows,'.',label='equalized power')
++++++++++++++++
ValueError: Unable to determine Axes to steal space for Colorbar. Either provide the *cax* argument to use as the Axes for the Colorbar,
provide the *ax* argument to steal space from it, or add *mappable* to an Axes.
I have tried installing the pyhough and matplotlib of the latest version, but this error still remains.
It seems the error is caused by the pyhough package, and I have no idea to correct it since I am not familiar with it.
Since Google Colab may update its environment again, I suggest checking all the tutorials one week before the workshop again.