2. Time and Phase AlignmentΒΆ

This tutorial demonstrates how to use PyART to align waveforms in time and phase.

%matplotlib inline
%config InlineBackend.figure_format = 'retina'

import numpy, pylab
import seaborn as sns

# Set up Seaborn aesthetics
sns.set_context('talk') 
sns.set_theme(font_scale=1.2)
sns.set_style('ticks')

# Update matplotlib rcParams
pylab.rcParams.update(
    {
        'text.usetex': False,
        'font.family': 'stixgeneral',
        'mathtext.fontset': 'stix',
        'axes.grid': True,
        'grid.linestyle': ':',
        'grid.color': '#bbbbbb',
        'axes.linewidth': 1,
    }
)
from PyART.catalogs import sxs, rit
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 24
     12 # Update matplotlib rcParams
     13 pylab.rcParams.update(
     14     {
     15         'text.usetex': False,
   (...)     22     }
     23 )
---> 24 from PyART.catalogs import sxs, rit

File /opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/PyART/catalogs/sxs.py:4
      2 import numpy as np
      3 import os
----> 4 import h5py
      5 import json
      6 from ..waveform import Waveform

ModuleNotFoundError: No module named 'h5py'