Skip to content

Commit

Permalink
Small updates to dev scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSwainston committed Jan 8, 2024
1 parent 17a41ab commit c65211e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
12 changes: 1 addition & 11 deletions dev_scripts/chunks_of_pulsars.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ def chunk_list(lst, chunk_size):
continue
pulsar_name = pulsar['name']

if pulsar_name in [
"J1939-6342", # J0437 mislabeled
"J1924-2914", # J0437 mislabeled
"J2052-3640", # J0437 mislabeled
"J2214-3835", # J0437 mislabeled
"J0710-1604", # Perhaps a candidate that wasn't detectable
"J2003-0934", # A craft candidate
"J1823-3022", # A trapum candidate
]:
continue

if pulsar_name in [
"J1644-4657",
Expand All @@ -62,5 +52,5 @@ def chunk_list(lst, chunk_size):

print(len(query))

for pulsar_chunk in chunk_list(list(query.sort_values("P0")["PSRJ"]), 100):
for pulsar_chunk in chunk_list(list(query.sort_values("P0")["PSRJ"]), 200):
print(",".join(pulsar_chunk))
5 changes: 4 additions & 1 deletion dev_scripts/generate_all_jsons_molonglo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
set -e

for path in $(find /fred/oz002/ldunn/meertime_dataportal/data/post -type f -name "obs.header"); do
if [ "${path}" == "/fred/oz002/ldunn/meertime_dataportal/data/post/J0922+0638/2021-09-23-23:10:59/obs.header" ]; then
continue
fi
if [ -e "${path%%obs.header}/meertime.json" ]; then
echo "Skipping $path"
else
echo "Making meetime.json for $path"
EXIT_CODE=0
generate_meerkat_json $path -o ${path%%obs.header} || EXIT_CODE=$?
generate_molonglo_json $path -o ${path%%obs.header} || EXIT_CODE=$?
if [ "$EXIT_CODE" -ne 42 ]; then
ingest_obs ${path%%obs.header}/meertime.json
fi
Expand Down
2 changes: 1 addition & 1 deletion dev_scripts/generate_all_jsons_search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

for path in $(find /fred/oz005/search -type f -name "obs.header"); do
if [ $path == "/fred/oz005/search/J1630-4733/2019-03-15-04:20:04/2/1070/obs.header" ]; then
if [[ "$path" == "/fred/oz005/search/J1630-4733/2019-03-15-04:20:04/2/1070/obs.header" || "$path" == "/fred/oz005/search/J1644-4559/2019-04-22-21:26:39/2/1444.5/obs.header" ]]; then
continue
fi
IFS="/"
Expand Down

0 comments on commit c65211e

Please sign in to comment.