Skip to content

Instantly share code, notes, and snippets.

View d3v-null's full-sized avatar

Dev Null d3v-null

View GitHub Profile
@d3v-null
d3v-null / aoc23-demo05.py
Created December 5, 2023 06:30
demonstration of how fast numpy operations can be used to speed up part 2 of aoc
import numpy as np
from more_itertools import chunked
map = [
[50, 98, 2],
[52, 50, 48]
]
def apply_map(map, srcs):
for dst_start, src_start, range_len in map:
@d3v-null
d3v-null / cal_picket_sig.sh
Created November 28, 2023 08:49
calibrate a picket fence observation with and without signal chain corrections
#!/bin/bash
set -eux
export obsid=1369821496
export outdir="/cygnus/dev/${obsid}"
export hyperdrive_devel="cargo +nightly -Z unstable-options -C ~/src/hyperdrive-devel run --release --quiet --features=hdf5-static,cuda,gpu-single --"
export hyperdrive_main="hyperdrive"
export birli="cargo +nightly -Z unstable-options -C ~/src/Birli run --release --quiet --"
# export srclist="/opt/cal/srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.yaml"
@d3v-null
d3v-null / sourcelist splicing.ipynb
Created November 24, 2023 06:38
there are at least two bugs in this.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
export obsid=1333747784
export srclist=/opt/cal/srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.yaml
export full_srclist=$srclist
# export cargo="cargo +nightly -Z unstable-options -C ~/src/hyperdrive-peel"
# export test="$cargo test --release --features=hdf5-static,cuda,gpu-single"
export hyperdrive="hyperdrive" # optionally use a different hyperdrive binary
# export hyperdrive="$cargo run --release --features=hdf5-static,cuda,gpu-single"
## Preprocessing settings
export timeres_s=2 # time resolution to average to in seconds
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/zsh -eux
export obsid="1090359520"
export outdir="/data/dev"
## preprocessing settings
#### time resolution to average to in seconds
export timeres_s=2
#### frequency resolution to average to in kHz
export freqres_khz=40
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d3v-null
d3v-null / get_vis_times.ipynb
Last active January 12, 2023 09:24
How to get the timestamps from MWA uvfits and measurement sets, what it looks like if --ignore-dut1 is enabled
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.