Hubble Space Telescope + AI — 2

Arash Kamangir
3 min readSep 13, 2023

--

Next, refactor,

@git clone kamangir cd
# refactors
kamangir help
@init kamangir clear
kamangir update

https://github.com/kamangir

bash testing: https://github.com/bats-core/bats-core

@script help
@ls
@select cat-under-trees-v2
@download
open .
#! /usr/bin/env bash

function runme() {
local sentence="a cat walking under apple trees"
local prefix="cat-under-trees"

local list_of_artists="Leonardo-da-Vinci,Vincent-van-Gogh,Michelangelo,Gustav-Klimt,Claude-Monet,Paul-Cézanne,Frida-Kahlo,Salvador-Dali,Jackson-Pollock,Johannes-Vermeer,Wassily-Kandinsky,Edvard-Munch,Paul-Gauguin,Pablo-Picasso,Rembrandt,Diego-Velázquez,Henri-Matisse,Andy-Warhol,Edgar-Degas,J.-M.-W.-Turner,Caravaggio"

local artist
for artist in $(echo $list_of_artists | tr , " ") ; do

local filename=$(python3 -c "print('$artist'.lower().replace(' ','-'))")

blue_stability generate image \
~dryrun \
$filename \
- \
"$sentence style by $(echo $artist | tr - " ")"
done

abcli_log "completed."
}

runme $@

writing a test for Vancouver-Watching 🌈

using Counting Birds in Downtown Vancouver with OpenAI — 6

vanwatch help
@select
vanwatch ingest vancouver - \
--count 3
@select vancouver-watching-test-v1
@script code
# edit in vscode
@source
#! /usr/bin/env bash

function runme() {
rm -v *.jpg
rm -v *.geojson

vanwatch ingest vancouver - \
--count 5
}

runme $@

integration w/ https://github.com/bats-core/bats-core

using https://en.wikipedia.org/wiki/FITS

https://bats-core.readthedocs.io/en/stable/

@git clone bats cd
./transform.sh
@git push . - "refactor"

github/kamangir/bats

https://bats-core.readthedocs.io/en/stable/tutorial.html#quick-installation

git submodule add https://github.com/bats-core/bats-core.git test/bats
git submodule add https://github.com/bats-core/bats-support.git test/test_helper/bats-support
git submodule add https://github.com/bats-core/bats-assert.git test/test_helper/bats-assert

needs more work.

hubble/notebooks/fits.ipynb

using https://docs.astropy.org/en/stable/io/fits/

--

--