from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA import os import unittest import warnings import numpy as np from matplotlib import rcParams from obspy import read_inventory from obspy.core.util.testing import ImageComparison, get_matplotlib_version MATPLOTLIB_VERSION = get_matplotlib_version() class StationTestCase(unittest.TestCase): """ Tests the for :class:`~obspy.core.inventory.station.Station` class. """ def setUp(self): self.image_dir = os.path.join(os.path.dirname(__file__), 'images') self.nperr = np.geterr() np.seterr(all='ignore') def tearDown(self): np.seterr(**self.nperr) def test_response_plot(self):
import unittest import warnings import numpy as np from matplotlib import rcParams import obspy from obspy import UTCDateTime, read_inventory, read_events from obspy.core.compatibility import mock from obspy.core.util.base import get_basemap_version, get_cartopy_version from obspy.core.util.testing import ImageComparison, get_matplotlib_version from obspy.core.inventory import (Channel, Inventory, Network, Response, Station) from obspy.core.inventory.util import _unified_content_strings MATPLOTLIB_VERSION = get_matplotlib_version() BASEMAP_VERSION = get_basemap_version() CARTOPY_VERSION = get_cartopy_version() class InventoryTestCase(unittest.TestCase): """ Tests the for :class:`~obspy.core.inventory.inventory.Inventory` class. """ def setUp(self): self.image_dir = os.path.join(os.path.dirname(__file__), 'images') self.nperr = np.geterr() np.seterr(all='ignore') def tearDown(self): np.seterr(**self.nperr)