Skip to content

Commit a52f192

Browse files
committed
Merge pull request #39 from weatherfrog/patch-1
Use absolute imports (for Python 3)
2 parents 4a87506 + 16f4049 commit a52f192

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cmocean/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
'''
77

88
# from cmocean import *
9-
import cm
10-
import tools
11-
import plots
12-
import data
9+
from cmocean import cm
10+
from cmocean import tools
11+
from cmocean import plots
12+
from cmocean import data
1313

1414
__authors__ = ['Kristen Thyng <[email protected]>']

cmocean/cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'''
2121

2222
# from matplotlib import cm, colors
23-
import tools
23+
from cmocean import tools
2424
import matplotlib
2525
# import plotting
2626
# import data

cmocean/plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Plots with colormaps.
33
'''
44

5-
import cm
5+
from cmocean import cm
66
import matplotlib.pyplot as plt
77
import numpy as np
88
import matplotlib as mpl
9-
import tools
9+
from cmocean import tools
1010
# from skimage import color
1111

1212

0 commit comments

Comments
 (0)