Skip to content

Commit b1203e6

Browse files
Resolve imports in result.py (#6)
* fix imports * <bot> update requirements-examples.txt * <bot> update requirements-tests.txt * <bot> update requirements.txt * consolidate imports --------- Co-authored-by: wipacdevbot <[email protected]>
1 parent fe39166 commit b1203e6

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

requirements-examples.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ matplotlib==3.7.1
3636
# icecube-skyreader (setup.py)
3737
meander==0.0.3
3838
# via icecube-skyreader (setup.py)
39-
numpy==1.24.2
39+
numpy==1.24.3
4040
# via
4141
# astropy
4242
# contourpy
@@ -50,7 +50,7 @@ packaging==23.1
5050
# via
5151
# astropy
5252
# matplotlib
53-
pandas==2.0.0
53+
pandas==2.0.1
5454
# via icecube-skyreader (setup.py)
5555
pillow==9.5.0
5656
# via matplotlib
@@ -74,7 +74,7 @@ pyyaml==6.0
7474
# via astropy
7575
qrcode==7.4.2
7676
# via wipac-rest-tools
77-
requests==2.28.2
77+
requests==2.29.0
7878
# via
7979
# requests-futures
8080
# wipac-dev-tools
@@ -85,7 +85,7 @@ scipy==1.10.1
8585
# via healpy
8686
six==1.16.0
8787
# via python-dateutil
88-
tornado==6.3
88+
tornado==6.3.1
8989
# via wipac-rest-tools
9090
types-cryptography==3.3.23.2
9191
# via pyjwt

requirements-tests.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ matplotlib==3.7.1
3434
# icecube-skyreader (setup.py)
3535
meander==0.0.3
3636
# via icecube-skyreader (setup.py)
37-
numpy==1.24.2
37+
numpy==1.24.3
3838
# via
3939
# astropy
4040
# contourpy
@@ -49,7 +49,7 @@ packaging==23.1
4949
# astropy
5050
# matplotlib
5151
# pytest
52-
pandas==2.0.0
52+
pandas==2.0.1
5353
# via icecube-skyreader (setup.py)
5454
pillow==9.5.0
5555
# via matplotlib
@@ -73,7 +73,7 @@ pytz==2023.3
7373
# via pandas
7474
pyyaml==6.0
7575
# via astropy
76-
requests==2.28.2
76+
requests==2.29.0
7777
# via wipac-dev-tools
7878
scipy==1.10.1
7979
# via healpy

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ matplotlib==3.7.1
3030
# icecube-skyreader (setup.py)
3131
meander==0.0.3
3232
# via icecube-skyreader (setup.py)
33-
numpy==1.24.2
33+
numpy==1.24.3
3434
# via
3535
# astropy
3636
# contourpy
@@ -44,7 +44,7 @@ packaging==23.1
4444
# via
4545
# astropy
4646
# matplotlib
47-
pandas==2.0.0
47+
pandas==2.0.1
4848
# via icecube-skyreader (setup.py)
4949
pillow==9.5.0
5050
# via matplotlib
@@ -60,7 +60,7 @@ pytz==2023.3
6060
# via pandas
6161
pyyaml==6.0
6262
# via astropy
63-
requests==2.28.2
63+
requests==2.29.0
6464
# via wipac-dev-tools
6565
scipy==1.10.1
6666
# via healpy

skyreader/result.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
import pandas as pd
2323
from astropy.io import ascii
2424
from matplotlib import pyplot as plt
25-
from matplotlib import text
25+
from matplotlib import text, patheffects
2626

2727
from .event_metadata import EventMetadata
2828

29+
from .plot.plotting_tools import format_fits_header, hp_ticklabels, plot_catalog, DecFormatter, RaFormatter
30+
2931
###############################################################################
3032
# DATA TYPES
3133

@@ -541,7 +543,6 @@ def create_plot(self,
541543
log_func=None,
542544
upload_func=None,
543545
final_channels=None):
544-
from .plotting_tools import DecFormatter, RaFormatter
545546

546547
if log_func is None:
547548
def log_func(x):
@@ -755,8 +756,6 @@ def area(vs):
755756
# show the grid
756757
ax.grid(True, color='k', alpha=0.5)
757758

758-
from matplotlib import patheffects
759-
760759
# Otherwise, add the path effects.
761760
effects = [patheffects.withStroke(linewidth=1.1, foreground='w')]
762761
for artist in ax.findobj(text.Text):
@@ -798,7 +797,6 @@ def create_plot_zoomed(self,
798797
plot_4fgl=False,
799798
final_channels=None):
800799
"""Uses healpy to plot a map."""
801-
from .plotting_tools import format_fits_header, hp_ticklabels, plot_catalog
802800

803801
if log_func is None:
804802
def log_func(x):

0 commit comments

Comments
 (0)