Skip to content

Commit 6f15349

Browse files
authored
Update for astrodbkit 2.3, improve ingest_source, re-org of utils (#103)
* fix PyPI badge in README * update astroquery and astrodbkit versions * new functions, reorg of utils * breakout publications and source utils * decrease complexity of ingest_source
1 parent 11c28bd commit 6f15349

File tree

11 files changed

+1173
-1120
lines changed

11 files changed

+1173
-1120
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# astrodb_utils
22
[![build](https://github.com/astrodbtoolkit/astrodb-scripts/actions/workflows/run_tests.yml/badge.svg)](https://github.com/astrodbtoolkit/astrodb-scripts/actions/workflows/run_tests.yml)
3-
[![Documentation Status](https://readthedocs.org/projects/astrodb-utils/badge/?version=latest)](https://astrodb-utils.readthedocs.io/en/latest/?badge=latest)
4-
![PyPI - Version](https://img.shields.io/pypi/v/astrodb-utils)
3+
[![Documentation Status](https://readthedocs.org/projects/astrodb-utils/badge/?version=latest)](https://astrodb-utils.readthedocs.io/en/latest/)
4+
[![PyPI - Version](https://img.shields.io/pypi/v/astrodb-utils)](https://pypi.org/project/astrodb-utils/)
55

66
The AstroDB Toolkit provides a set of tools to help astronomers work with and create databases.
77
The `astrodb_utils` package provides a set of functions to query and ingest data into databases built with the `astrodb-template-db` schema.

astrodb_utils/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44

55
from .utils import ( # noqa: F401
66
AstroDBError,
7-
find_publication,
8-
find_source_in_db,
7+
exit_function,
98
ingest_instrument,
10-
ingest_names,
11-
ingest_publication,
12-
ingest_source,
139
internet_connection,
1410
load_astrodb,
1511
)

astrodb_utils/photometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
from astrodb_utils import (
1414
AstroDBError,
15-
find_publication,
16-
find_source_in_db,
1715
ingest_instrument,
1816
internet_connection,
1917
)
18+
from astrodb_utils.publications import find_publication
19+
from astrodb_utils.sources import find_source_in_db
2020

2121
logger = logging.getLogger(__name__)
2222

0 commit comments

Comments
 (0)