Skip to content

Commit 8d388c6

Browse files
committed
Define __all__ for each python module
1 parent a7d47af commit 8d388c6

5 files changed

Lines changed: 11 additions & 0 deletions

File tree

tutorials/spherex/spherex_source_discovery/spherex_source_discovery_tool/aperture_photometry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
# Convert arcsec^2 to steradians.
3030
ARCSEC2_TO_SR = (np.pi / (180.0 * 3600.0))**2 # sr / arcsec^2
3131

32+
__all__ = ["interp2d_rg", "fetch_sapm", "sa_mjy_scale_map", "interp2d_like",
33+
"extract_photometry", "extract_dqf", "get_AB", "build_phot_table", "grab_star"]
3234

3335
# Functions
3436
def interp2d_rg(x: np.ndarray, y: np.ndarray, z: np.ndarray, kind="linear", fill_value=np.nan) -> callable:

tutorials/spherex/spherex_source_discovery/spherex_source_discovery_tool/bokeh_viz.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
# Local application/library specific imports
2525

26+
__all__ = ["xyz_hover", "copy_selected_button", "plot_preview", "plot_apertures",
27+
"plot_spectrum", "plot_subtracted_trio", "plot_overlap_trio"]
28+
2629

2730
def xyz_hover(renderers: list[glyphs.Image], z_units: str) -> HoverTool:
2831
"""Creates a hover tool to display the x, y position and z value in an

tutorials/spherex/spherex_source_discovery/spherex_source_discovery_tool/firefly_viz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# Local application/library specific imports
1010
from spherex_source_discovery_tool.sdt_utils import get_filename
1111

12+
__all__ = ["preview_query"]
13+
1214

1315
def preview_query(fc: FireflyClient, access_url: str, coord: SkyCoord, search_radius: Quantity):
1416
"""Preview the results of an SDT query in Firefly.

tutorials/spherex/spherex_source_discovery/spherex_source_discovery_tool/sdt_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
# Local imports
1515

16+
__all__ = ["format_extracted", "get_filename", "get_obs_id", "get_exp_id",
17+
"results_summary", "get_lambda_range"]
1618

1719
# Function definitions
1820
def format_extracted(sxt_cat_filepath: str, sxt_cat_format: str, cut_filepath: str) -> Table:

tutorials/spherex/spherex_source_discovery/spherex_source_discovery_tool/source_extraction.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from subprocess import run, CalledProcessError
77
import importlib.resources as resources
88

9+
__all__ = ["run_sextractor", "get_sextractor_file"]
10+
911

1012
def run_sextractor(cut_filepath: str, sxt_config: str, sxt_params: str, sxt_cat_path: str, sxt_nnw: str,
1113
sxt_conv: str):

0 commit comments

Comments
 (0)