Skip to content

Commit 852e68e

Browse files
committed
refac: moved refactored new plot module into csep main directory (e.g., import csep.plots), and left the legacy plots module in the same location (csep.utils.plots), while adding deprecation warnings to all of its uses. Removed legacy compat layer. Modified tests and docs accordingly.
1 parent ac88644 commit 852e68e

17 files changed

+5357
-4410
lines changed

csep/core/catalogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from csep.utils.log import LoggingMixin
2424
from csep.utils.readers import csep_ascii
2525
from csep.utils.file import get_file_extension
26-
from csep.utils.plots import plot_catalog, plot_magnitude_versus_time
26+
from csep.plots import plot_catalog, plot_magnitude_versus_time
2727

2828

2929
class AbstractBaseCatalog(LoggingMixin):

csep/core/forecasts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from csep.utils.time_utils import decimal_year, datetime_to_utc_epoch
1414
from csep.core.catalogs import AbstractBaseCatalog
1515
from csep.utils.constants import SECONDS_PER_ASTRONOMICAL_YEAR
16-
from csep.utils.plots import plot_gridded_dataset
16+
from csep.plots import plot_gridded_dataset
1717

1818

1919
# idea: should this be a SpatialDataSet and the class below SpaceMagnitudeDataSet, bc of functions like

csep/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pyproj
77

88
from csep.utils.time_utils import datetime_to_utc_epoch, epoch_time_to_utc_datetime
9-
from csep.utils import plots
9+
from csep import plots
1010

1111

1212
class Simulation:

0 commit comments

Comments
 (0)