Skip to content

Commit

Permalink
address Clancy's comments for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybaptista committed Jul 21, 2023
1 parent cbfb1e6 commit 04c0282
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 189 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,3 @@ zdm/untitled10.py

*.DS_Store
papers/H0_I/Analysis/Real/minicube_real.src


zdm/data/Surveys/private_CRAFT_ICS_892.ecsv
zdm/data/Surveys/private_CRAFT_ICS_1272.ecsv
zdm/data/Surveys/private_CRAFT_ICS_1632.ecsv
Binary file not shown.
105 changes: 0 additions & 105 deletions papers/F/Analysis/Real/Cloud/Output_low_res/explore.ipynb

This file was deleted.

21 changes: 20 additions & 1 deletion papers/F/Analysis/Real/Cloud/run_craco_real.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,18 @@ def main(
if int(ntotal / total_ncpu) != nper_cpu:
raise IOError(f"Ncpu={total_ncpu} must divide evenly into ntotal={ntotal}")

start = pargs.start
end = pargs.end

commands = []
for kk in range(pargs.ncpu):

nums = range(pargs.ncpu)

# Restrict to subset of CPUs if specified
if (start > 0) and (end > 0):
nums = np.arange(start-1, end, dtype="int")

for kk in nums:
line = []
# Which CPU is running out of the total?
iCPU = (batch - 1) * pargs.ncpu + kk
Expand Down Expand Up @@ -102,6 +112,15 @@ def parse_option():
parser.add_argument(
"-b", "--batch", type=int, default=1, required=False, help="Batch number"
)

# Optional restriction to subset of cube
parser.add_argument(
"-s", "--start", type=int, default=0, required=False, help="csv to start on",
)
parser.add_argument(
"-e", "--end", type=int, default=0, required=False, help="csv to end on (inclusive)",
)

args = parser.parse_args()

return args
Expand Down
71 changes: 0 additions & 71 deletions papers/F/Analysis/Real/Cloud/run_real_craco_block.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
cd ../../..;
cd papers/F/Analysis/Real/Cloud;
mkdir Output;
python run_real_craco_block.py -s 1 -e 5;
python run_craco_real.py -t 41 -n 41 -s 1 -e 5;
aws --endpoint http://rook-ceph-rgw-nautiluss3.rook s3 cp Output s3://zdm/Cubes/F/real/ --recursive --force;
env:
- name: "ENDPOINT_URL"
Expand Down
4 changes: 2 additions & 2 deletions zdm/data/Surveys/CRAFT_ICS_1632.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
# schema: astropy-2.0
TNS BW DM DMG FBAR FRES Gb Gl SNR SNRTHRESH THRESH TRES WIDTH XC XDec XRA Z
20211212A 336.0 206.0 27.1 1632.5 1.0 "" "" 12.8 9.0 4.4 1.182 2.7 closepack36/45/0.9 01:40:36.8 10:30:40.7 0.0715
20220105A 336.0 583.0 22.0 1632.5 1.0 "" "" 9.8 9.0 4.4 1.182 2.0 "" 13:54:51.4 0.2785
20221106A 336.0 344.0 34.8 1631.5 1.0 "" "" 35.1 9.0 4.4 1.182 5.7 "" 03:46:38.1 -1.0
20220105A 336.0 583.0 22.0 1632.5 1.0 "" "" 9.8 9.0 4.4 1.182 2.0 "" 22:29:19.7 13:54:51.4 0.2785
20221106A 336.0 344.0 34.8 1631.5 1.0 "" "" 35.1 9.0 4.4 1.182 5.7 "" -25:39:44.9 03:46:38.1 -1.0
2 changes: 1 addition & 1 deletion zdm/data/Surveys/CRAFT_ICS_892.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ TNS BW DM DMG FBAR FRES Gb Gl SNR SNRTHRESH THRESH TRES WIDTH XC XDec XRA Z
20210807D 336.0 251.9 121.2 920.5 1.0 "" "" 47.1 9.0 4.4 1.182 10.0 square6x6/45/0.9 -00:45:44.5 19:56:53.144 0.12969
20210809C 336.0 651.5 190.1 920.5 1.0 "" "" 16.8 9.0 4.4 1.182 14.2 square6x6/45/0.9 01:19:43.5 18:04:37.7 -1.0
20211203C 336.0 636.2 63.4 920.5 1.0 "" "" 14.2 9.0 4.4 1.182 9.6 closepack36/45/0.9 -31:22:04.0 13:37:52.8 0.34386
20220725A 336.0 290.4 30.7 920.5 1.0 "" "" 12.7 9.0 4.4 1.182 4.1 "" 23:33:32.1 0.1926
20220725A 336.0 290.4 30.7 920.5 1.0 "" "" 12.7 9.0 4.4 1.182 4.1 "" "" 23:33:32.1 0.1926
6 changes: 3 additions & 3 deletions zdm/real_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def surveys_and_grids(init_state=None, alpha_method=1, add_20220610A=False):

############## Initialise surveys ##############
survey_names = ['CRAFT/FE',
'private_CRAFT_ICS_1632',
'private_CRAFT_ICS_892',
'private_CRAFT_ICS_1272',
'CRAFT_ICS_1632',
'CRAFT_ICS_892',
'CRAFT_ICS_1272',
'PKS/Mb']
if add_20220610A:
survey_names[3] = 'CRAFT_ICS_w_220610'
Expand Down

0 comments on commit 04c0282

Please sign in to comment.