Skip to content

Commit

Permalink
Change imports to all relative for viz (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan authored Dec 14, 2021
1 parent ee581f3 commit 0bfc55b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions echopype/visualize/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from echopype.visualize.api import create_echogram
from echopype.visualize import cm
from .api import create_echogram
from . import cm

__all__ = ["create_echogram", "cm"]
4 changes: 2 additions & 2 deletions echopype/visualize/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import xarray as xr

from echopype.visualize.plot import _plot_echogram, FacetGrid, QuadMesh, T
from echopype.echodata import EchoData
from .plot import _plot_echogram, FacetGrid, QuadMesh, T
from ..echodata import EchoData


def create_echogram(
Expand Down
2 changes: 1 addition & 1 deletion echopype/visualize/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import numpy as np
from xarray.plot.facetgrid import FacetGrid
from matplotlib.collections import QuadMesh
from echopype.visualize.cm import cmap_d
from typing import Optional, Union, List, TypeVar
from .cm import cmap_d

T = TypeVar('T', int, float)

Expand Down

0 comments on commit 0bfc55b

Please sign in to comment.