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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
toxenv: py312
python-version: 3.12

- name: python 3.13
toxenv: py313
python-version: 3.13

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
1.1.4 (unreleased)
==================

analyzer
--------
- Minor fixes and improvements to plotting functions in explore module along with updated docstrings [#148]

builder
-------
- Retrain JWST models on data collected through January 8, 2026 (v5) and use t0 targ ID instead of 9-digit source ID for NRC WFSS Parallel_Pure [#147]
- Retrain JWST models on data collected through January 8, 2026 (v5) and use t0 targ ID instead of 9-digit source ID for NRC WFSS Parallel_Pure [#147]


1.1.3 (2025-07-08)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $ pytest --env jwstcal -m jwst

**JWST Calibration Pipeline Resource Prediction (JWST)**

[JWST CAL Docs](https://spacekit.readthedocs.io/en/latest/skopes/jwst/cal.html)
[JWST CAL Docs](https://www.spacekit.org/en/latest/skopes/jwst/cal/index.html)

* Inference ``spacekit.skopes.jwst.cal.predict``

Expand Down Expand Up @@ -86,7 +86,7 @@ $ python -m spacekit.skopes.jwst.cal.predict /path/to/inputs --pid 1076

**Single Visit Mosaic Alignment (HST)**

[SVM Docs](https://spacekit.readthedocs.io/en/latest/skopes/hst/svm.html)
[SVM Docs](https://www.spacekit.org/en/latest/skopes/hst/svm/index.html)

* Preprocessing: ``spacekit.skopes.hst.svm.prep``
* Predict Image Alignments: ``spacekit.skopes.hst.svm.predict``
Expand All @@ -97,15 +97,15 @@ $ python -m spacekit.skopes.jwst.cal.predict /path/to/inputs --pid 1076

**HST Calibration Pipeline Resource Prediction (HST)**

[HST CAL Docs](https://spacekit.readthedocs.io/en/latest/skopes/hst/cal.html)
[HST CAL Docs](https://www.spacekit.org/en/latest/skopes/hst/cal/index.html)

* Training ``spacekit.skopes.hst.cal.train``
* Inference ``spacekit.skopes.hst.cal.predict``


**Exoplanet Detection with time-series photometry (K2, TESS)**

[K2 Docs](https://spacekit.readthedocs.io/en/latest/skopes/kepler/light-curves.html)
[K2 Docs](https://www.spacekit.org/en/latest/skopes/kepler/light_curves.html)

* ``spacekit.skopes.kepler.light_curves``

Expand Down
1 change: 0 additions & 1 deletion docker/images/dashboard_image/templates/aws/.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ SPACEKIT_VERSION="1.1.3"
SRC="s3" # pkg, s3, git, file
COLLECTION="" # bucketname, repo url, or local path
DATASETS="2022-02-14-1644848448,2021-11-04-1636048291,2021-10-28-1635457222"
# DATASETS="2021-11-04-1636048291,2021-10-28-1635457222,2021-08-22-1629663047"
PFX="archive" # for s3 this is the folder prefix
SPACEKIT_DATA=/home/developer # top-level dir where "data" folder is created
CONTAINER_MODE="-it" # -d for detached, -it for interactive
Expand Down
4 changes: 2 additions & 2 deletions docker/images/dashboard_image/templates/latest/.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ PFX="archive" # for s3 this is the folder prefix
SPACEKIT_DATA=/home/developer # top-level dir where "data" folder is created
CONTAINER_MODE="-d" # -it for interactive, -d for detached
MOUNTS=0 # 1 will bind mount the below source and dest paths
SOURCEDATA="" #"$(pwd)"
DESTDATA="" #"/home/developer/spacekit"
SOURCEDATA="" # $(pwd)
DESTDATA="" # /home/developer/spacekit
HOSTNAME="localhost"
IPADDRESS=0.0.0.0
NAME="spkt-dash-${APP}-${VERSION}"
Expand Down
6 changes: 4 additions & 2 deletions docs/source/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ mouse_ball.y = e.pageY;


function hideAds() {
const adIds = ["readthedocs-ea", "readthedocs-ea-text-footer"];
const adIds = ["readthedocs-ea", "readthedocs-ea-text-footer", "readthedocs-ea-text-nostyle-nodoctool"];
adIds.forEach(element => {
var rtdAd = document.getElementById(element);
if (rtdAd != null && !rtdAd.hasAttribute("hidden")) {
Expand Down Expand Up @@ -306,4 +306,6 @@ waitForVariable('ethicalads')
.catch((error) => {
console.error(error);
// handle timeout or error
}, 2000);
}, 2000);

hideAds();
11 changes: 1 addition & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,13 @@
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
import datetime
import importlib
from packaging.version import Version
from configparser import ConfigParser



# -- Path setup --------------------------------------------------------------
def setup(app):
try:
app.add_css_file("stsci.css")
Expand Down
4 changes: 2 additions & 2 deletions docs/source/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ the Astronomical Data Science and Machine Learning Toolkit
Overview
========

Spacekit is a python library designed to do the heavy lifting of machine learning in astronomy-related applications using .
Spacekit is a python library designed to do the heavy lifting of machine learning in astronomy-related applications.

The modules contained in this package can be used to assist and streamline each step of a typical data science project:

Expand All @@ -27,7 +27,7 @@ The modules contained in this package can be used to assist and streamline each
Applications
------------

The :doc:`Skøpes <skopes/index>` module includes real-world machine learning applications used by the Hubble and James Webb Space Telescopes in data calibration pipelines. These mini-applications are an orchestration of functions and classes from other spacekit modules to run real-time, automated analysis, training, and inference on a local server as well as in the cloud (AWS).
The :doc:`Skøpes <skopes/index>` module includes real-world machine learning applications used by the Hubble and James Webb Space Telescopes in data calibration pipelines. These mini-applications are an orchestration of functions and classes from other spacekit modules to run automated analysis, training, and inference in real-time on a local server or in the cloud (AWS).


Indices and tables
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -xu
#!/bin/bash -e
source "./docker/images/dashboard_image/.env"

DOCKER_FILE=./docker/images/dashboard_image/Dockerfile
Expand Down
32 changes: 21 additions & 11 deletions scripts/launch.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
#!/bin/bash -xu
#!/bin/bash -e
# To view notebooks in -it mode: jupyter-lab --ip 0.0.0.0

envfile="./docker/images/dashboard_image/.env"
source $envfile

if [ "${CONTAINER_MODE}" == "-it" ]; then
EPCOMMAND="/bin/bash"
fi

if [ $MOUNTS -ne 0 ]; then
docker run ${CONTAINER_MODE} \
-p 8080:8050 -p 8888:8888 \
--name $NAME \
--mount type=bind,source=${SOURCEDATA},target=${DESTDATA} \
$DOCKER_IMAGE $EPCOMMAND
existing=`docker ps -aqf "name=${NAME}"`

if [[ -z $existing ]]; then
if [ $MOUNTS -ne 0 ]; then
docker run ${CONTAINER_MODE} \
-p 8050:8050 \
--name $NAME \
--mount type=bind,source=${SOURCEDATA},target=${DESTDATA} \
$DOCKER_IMAGE $EPCOMMAND
else
docker run ${CONTAINER_MODE} \
-p 8050:8050 \
--name $NAME \
$DOCKER_IMAGE $EPCOMMAND
fi
else
docker run ${CONTAINER_MODE} \
-p 8080:8050 -p 8888:8888 \
--name $NAME \
$DOCKER_IMAGE $EPCOMMAND
echo "Restarting existing container: ${NAME} (ID=${existing})"
docker container start $NAME
docker container exec ${CONTAINER_MODE} $NAME $EPCOMMAND
fi
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edit_on_github = False
github_project = spacetelescope/spacekit
project_urls =
Source = https://github.com/spacetelescope/spacekit
Documentation = https://spacekit.readthedocs.io
Documentation = https://www.spacekit.org
Tracker = https://github.com/spacetelescope/spacekit/issues
classifiers=
Intended Audience :: Science/Research
Expand All @@ -24,6 +24,7 @@ classifiers=
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13

[options]
zip_safe = False
Expand All @@ -37,7 +38,7 @@ install_requires =
tensorflow>=2.16.1
astropy
boto3
numpy>=1.22
numpy>=1.25
pandas
scikit-learn>=1.3.2

Expand Down
Loading