File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ sbpy.names
11
11
to be implemented by the MPC in anticipation of higher asteroid discovery
12
12
rates in the LSST survey era [#406]
13
13
14
+ API Changes
15
+ -----------
16
+ - Deprecated `sbpy.ginga_plugins ` in favor of using `sbpy-ginga ` at
17
+ https://github.com/NASA-Planetary-Science/sbpy-ginga [#413]
18
+
14
19
15
20
Other Changes and Additions
16
21
---------------------------
Original file line number Diff line number Diff line change 8
8
9
9
from warnings import warn
10
10
from sbpy .exceptions import OptionalPackageUnavailable
11
+ from astropy .utils .decorators import deprecated
11
12
12
13
try :
13
14
from ginga .GingaPlugin import LocalPlugin
@@ -30,6 +31,7 @@ class LocalPlugin:
30
31
from sbpy .imageanalysis import CometaryEnhancement
31
32
32
33
34
+ @deprecated ("0.6" , alternative = "sbpy_ginga.cometary_enhancements.CometaryEnhancements" )
33
35
class CometaryEnhancements (LocalPlugin ):
34
36
"""Ginga plugin for on-the-fly cometary image enhancements."""
35
37
@@ -130,6 +132,14 @@ def build_gui(self, container):
130
132
131
133
vbox .add_widget (tabw )
132
134
135
+ # Add a deprecation warning
136
+ hbox = Widgets .HBox ()
137
+ text_area = Widgets .TextArea ()
138
+ text_area .append_text ("This tool is from the deprecated sbpy.ginga_plugins "
139
+ "module. Use the sbpy-ginga module instead." )
140
+ hbox .add_widget (text_area )
141
+ vbox .add_widget (hbox )
142
+
133
143
# scroll bars will allow lots of content to be accessed
134
144
top .add_widget (sw , stretch = 1 )
135
145
Original file line number Diff line number Diff line change 2
2
import os
3
3
from warnings import warn
4
4
5
- from astropy .utils .exceptions import AstropyWarning
5
+ from astropy .utils .exceptions import AstropyWarning , AstropyDeprecationWarning
6
6
7
7
try :
8
8
from ginga .misc .Bunch import Bunch
13
13
14
14
Bunch = None
15
15
16
+ warn (
17
+ "sbpy.ginga_plugins is deprecated. Use the `sbpy_ginga` module instead." ,
18
+ AstropyDeprecationWarning ,
19
+ stacklevel = 2 ,
20
+ )
21
+
16
22
# path to these plugins
17
23
p_path = os .path .split (__file__ )[0 ]
18
24
You can’t perform that action at this time.
0 commit comments