This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# TODO: FREQUENCY BROADCAST | |
import os | |
import json | |
from SSINS import Catalog_Plot as cp, util as ssins_util | |
from SSINS import SS, INS, MF, plot_lib | |
from matplotlib import pyplot as plt, cm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# salloc --nodes=1 --partition=gpu-highmem --account=pawsey0875-gpu -t 04:00:00 --gres=gpu:1 --exclusive | |
# if you want segfaults: | |
# ROCM_VER=system DEBUG=false RAYON_NUM_THREADS=7 ./hyperdrive_hip_setonix.sh | |
# ##### # | |
# SETUP # | |
# ##### # | |
set -eux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c 'from astropy.io import fits; import sys; from tabulate import tabulate; print(tabulate((i:=fits.open(sys.argv[-1])[1]).data, headers=[c.name for c in i.columns]))' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#SBATCH -J "hypertest" | |
#SBATCH --nodes=1 | |
#SBATCH --ntasks=1 | |
#SBATCH --account=pawsey0875-gpu | |
#SBATCH --partition=gpu | |
#SBATCH --time=1:00:00 | |
#SBATCH --exclusive | |
#SBATCH --gres=gpu:1 | |
###SBATCH --array=0-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder