Skip to content

Commit

Permalink
switch from deprecated pkg_resources to importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
henrysky committed Jun 19, 2024
1 parent 0418572 commit 6977f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mw_plot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from mw_plot.mw_plot_bokeh import *

from mw_plot.mw_plot_matplotlib import *
from pkg_resources import get_distribution
from importlib.metadata import version
from astropy.coordinates import SkyCoord, ICRS
import astropy.units as u
import numpy as np

version = __version__ = get_distribution("mw_plot").version
version = __version__ = version("mw_plot")

# RA and DEC of galactic center, galactic anti-center, galactic north and south pole in degree
center_radec = [266.4167, -29.0078]
Expand Down

0 comments on commit 6977f7d

Please sign in to comment.