Skip to content

Commit 7761d85

Browse files
author
sambit-giri
committed
again bar
1 parent 13eeace commit 7761d85

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/tools21cm/radio_telescope_noise.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def noise_lightcone(ncells, zs, obs_time=1000, subarray_type="AA4", boxsize=None
628628
if n_jobs<=1:
629629
tstart = time()
630630
for k,zi in tqdm(enumerate(zs), disable=verbose):
631-
if not verbose:
631+
if verbose:
632632
print(f'{k+1}/{len(zs)} | z={zi:.3f}', end='')
633633
if '{:.3f}'.format(zi) not in uvs.keys():
634634
uv_map, N_ant = get_uv_map(ncells, zi, subarray_type=antxyz, total_int_time=total_int_time, int_time=int_time, boxsize=boxsize, declination=declination, verbose=verbose)
@@ -637,7 +637,8 @@ def noise_lightcone(ncells, zs, obs_time=1000, subarray_type="AA4", boxsize=None
637637
if save_uvmap is not None:
638638
write_dictionary_data(uvs, save_uvmap)
639639
tend = time()
640-
print(f'...time elapsed = {(tend-tstart)/60:.2f} mins')
640+
if verbose:
641+
print(f'...time elapsed = {(tend-tstart)/60:.2f} mins')
641642
else:
642643
# Nbase, N_ant = from_antenna_config(antxyz, zs[0])
643644
uvs['Nant'] = N_ant

0 commit comments

Comments
 (0)