Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions batanalysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
try:
caldb = os.environ["CALDB"]
except KeyError as e:
raise EnvironmentError('CALDB does not seem to be initialized/installed. '
'BatAnalysis cannot be imported without this.')
raise EnvironmentError(
"CALDB does not seem to be initialized/installed. "
"BatAnalysis cannot be imported without this."
)

# can also get None for caldb which is not good
if caldb is None:
raise EnvironmentError('CALDB does not seem to be initialized/installed. '
'BatAnalysis cannot be imported without this.')
raise EnvironmentError(
"CALDB does not seem to be initialized/installed. "
"BatAnalysis cannot be imported without this."
)


from ._version import __version__
Expand All @@ -39,4 +43,13 @@
from .batlib import *
from .plotting import *
from .mosaic import *
from .skyproject import *
from . import parallel

# from .skyproject_direct import *

# In general ignore WCS warnings
import warnings
from astropy.wcs import FITSFixedWarning

warnings.filterwarnings("ignore", category=FITSFixedWarning)
273 changes: 185 additions & 88 deletions batanalysis/bat_skyimage.py

Large diffs are not rendered by default.

Loading