Skip to content

Commit

Permalink
logger update - kamangir/bolt#1234
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Mar 4, 2024
1 parent 75e0e32 commit dadd5c6
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .abcli/hubble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ function abcli_hubble() {
return
fi

if [[ "|pylint|pytest|test|" == *"|$task|"* ]]; then
abcli_${task} plugin=hubble,$2 \
"${@:3}"
return
fi

python3 -m hubble \
$task \
"${@:2}"
Expand Down
9 changes: 9 additions & 0 deletions .abcli/tests/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /usr/bin/env bash

function test_blue_plugin_version() {
local options=$1
local do_dryrun=$(abcli_option_int "$options" dryrun 0)

abcli_eval dryrun=$do_dryrun \
"hubble version ${@:2}"
}
2 changes: 1 addition & 1 deletion hubble/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

DESCRIPTION = f"{ICON} tools to access and process Hubble Space Telescope imagery and other datasets on AWS Open Data Registry."

VERSION = "3.299.1"
VERSION = "3.301.1"
9 changes: 3 additions & 6 deletions hubble/fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
from typing import List
from astropy.io import fits
import matplotlib.pyplot as plt
from abcli.plugins.graphics.gif import generate_animated_gif
from abcli import file, path
from . import NAME
from abcli import logging
import logging

logger = logging.getLogger(__name__)
from abcli.plugins.graphics.gif import generate_animated_gif
from hubble import NAME
from hubble.logger import logger


def load_fit_file(
Expand Down
5 changes: 5 additions & 0 deletions hubble/tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from hubble import VERSION


def test_version():
assert VERSION
2 changes: 1 addition & 1 deletion notebooks/hst.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"from abcli.plugins import seed\n",
"from hubble import NAME, VERSION\n",
"from hubble.ingest import ingest\n",
"from abcli.logger import logger\n",
"from hubble.logger import logger\n",
"\n",
"logger.info(f\"{NAME}.{VERSION}.{fullname()}, built on {string.pretty_date()}\")"
]
Expand Down

0 comments on commit dadd5c6

Please sign in to comment.