Skip to content

Commit 1665a74

Browse files
committed
change lines based on comments
1 parent 4896409 commit 1665a74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/packages/nisar/workflows/h5_prep.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,9 @@ def prep_ds_insar(cfg, dst, dst_h5):
447447
ref_slc = SLC(hdf5file=input_h5)
448448

449449
with h5py.File(input_h5, 'r', libver='latest', swmr=True) as src_h5:
450-
for freq in freq_pols.keys():
451-
pol_list = freq_pols[freq]
452-
# Get SLC dimension for that frequency
450+
for freq, pol_list in freq_pols.items():
453451

452+
# Get SLC dimension for that frequency
454453
# Take size of first available polarization
455454
dset = src_h5[os.path.join(f'{ref_slc.SwathPath}/frequency{freq}/{pol_list[0]}')]
456455
az_lines, rg_cols = dset.shape

0 commit comments

Comments
 (0)