Skip to content

Commit

Permalink
Fix import error if astropy not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Apr 8, 2020
1 parent f56360a commit 67bfe50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/sdssdb/utils/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import re
import warnings

import astropy.table
import numpy
import peewee
from playhouse.postgres_ext import ArrayField
Expand Down Expand Up @@ -398,6 +397,8 @@ def file_to_db(input_, connection, table_name, schema=None, lowercase=False,
"""

import astropy.table

# If we drop we need to re-create but there is no need to truncate.
if drop:
create = True
Expand Down
1 change: 1 addition & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ python:
- method: pip
path: .
extra_requirements:
- all
- dev
- docs

0 comments on commit 67bfe50

Please sign in to comment.