Skip to content

Instantly share code, notes, and snippets.

View mwcraig's full-sized avatar

Matt Craig mwcraig

View GitHub Profile
@mwcraig
mwcraig / generate_tutorials_md.py
Created June 25, 2026 16:57
SciPy 2026 Tutorial Installation Instructors markdown generator
#!/usr/bin/env python3
"""Generate a nicely formatted Markdown file from the SciPy 2026 Tutorials CSV."""
import csv
import re
from pathlib import Path
CSV_PATH = Path("SciPy 2026 Tutorials - Installation instruction + content links.csv")
MD_PATH = Path("SciPy 2026 Tutorials.md")
@mwcraig
mwcraig / one-language-install.md
Created June 25, 2026 15:56
Installation instructions for "One Language to Rule Them All: Developing Reactive, Scientific Web Apps in Pure Python with Tethys Platform"
  1. Package requirements: tethys-platform installed via pip or conda into a python 3.12 environment
  2. Installation instructions: After installing tethys-platform, run tethys quickstart
  3. As a result of tethys quickstart your browser should automatically open to http://127.0.0.1:8000 where you will see a login page. Login with "admin:pass" and if that works, you're good to go!
@mwcraig
mwcraig / requirements.txt
Created June 25, 2026 15:48
Requirements for Intro to Safe, Reliable, and Maintainable AI Apps in Python
querychat[viz]
shinychat
chatlas
polars
sqlalchemy
duckdb
streamlit
dash
gradio
@mwcraig
mwcraig / safe-reliable-ai-apps.py
Last active June 25, 2026 15:48
Install check for Intro to Safe, Reliable, and Maintainable AI Apps in Python
import querychat
import shinychat
import chatlas
import polars
import sqlalchemy
import duckdb
import streamlit
import dash
import gradio
@mwcraig
mwcraig / USNO-to-sloan-transform-exploration.ipynb
Created June 21, 2025 16:23
Transformation from USNO u'g'r'i'z' to SDSS ugriz (at least for the DR&, there I got these transforms from)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "markdown",
"id": "9dcf0b1c-3add-4a35-8b1b-f62ebedc36c8",
"metadata": {},
"source": [
"# Quick timing of converting a table of positions and radii to a lit of markers"
]
},
from typing import Annotated, List
from pydantic import BaseModel, Field
from stellarphot.settings.aavso_models import AAVSOFilters
class StarList(BaseModel):
x: float
y: float
ra: float
dec: float
[
{
"name": "dev",
"url": "https://www.astropy.org/ccd-reduction-and-photometry-guide/v/dev/"
},
{
"version": "2.0.1",
"url": "https://www.astropy.org/ccd-reduction-and-photometry-guide/v/2.0.1/"
},
{

Proposal for fund disbursement, "Stellar photometry for ground-based images"

Current status of project

A short summary of the current status of the project is helpful for understanding why the sequence of spending is what I've proposed below.

I a package several years ago that propvides the skeleton for what I'm suggesting in this proposal.

The package, called stellarphot, currently does these functions, which use a broad range of astropy functionality:

Keybase proof

I hereby claim:

  • I am mwcraig on github.
  • I am mwcraig (https://keybase.io/mwcraig) on keybase.
  • I have a public key ASCHM4t53H0OhxoEEPAzCWZFYcLKRyB9RqbU9avCKQp0Owo

To claim this, I am signing this object: