diff --git a/src/miaplpy/find_short_baselines.py b/src/miaplpy/find_short_baselines.py index 447315d..0effc6b 100755 --- a/src/miaplpy/find_short_baselines.py +++ b/src/miaplpy/find_short_baselines.py @@ -196,8 +196,8 @@ def find_mini_stacks(date_list, baseline_dir, month=6): years = np.array([x.year for x in dates]) u, indices_first = np.unique(years, return_index=True) f_ind = indices_first - l_ind = np.zeros(indices_first.shape, dtype=np.int) - l_ind[0:-1] = np.array(f_ind[1::]).astype(np.int) + l_ind = np.zeros(indices_first.shape, dtype=int) + l_ind[0:-1] = np.array(f_ind[1::]).astype(int) l_ind[-1] = len(dates) ref_inds = [] for i in range(len(f_ind)): diff --git a/src/miaplpy/simulation.py b/src/miaplpy/simulation.py index 1f2efea..3203f2a 100755 --- a/src/miaplpy/simulation.py +++ b/src/miaplpy/simulation.py @@ -263,7 +263,7 @@ def repeat_simulation(numr, n_img, n_shp, phas, coh_sim_S, coh_sim_L, outname): #### - num_seq = np.int(n_img // 10) + num_seq = int(n_img // 10) ph_vec, sqeezed, temp_quality = sequential_phase_linking_py(CCGsam_Sterm, b'EVD', 10, num_seq) ph_vec = datum_connect_py(sqeezed, ph_vec, 10) EVD_seq_est_resS[:, t:t + 1] = np.angle(np.array(ph_vec).reshape(-1, 1) * np.exp(-1j * phas)) diff --git a/src/miaplpy/unwrap_ifgram.py b/src/miaplpy/unwrap_ifgram.py index 45a4cb3..cdd57a3 100755 --- a/src/miaplpy/unwrap_ifgram.py +++ b/src/miaplpy/unwrap_ifgram.py @@ -358,7 +358,7 @@ def update_connect_component_mask(unwrapped_file, temporal_coherence): ds_conn = gdal.Open(unwrapped_file + '.conncomp.vrt', gdal.GA_ReadOnly) conn_comp = ds_conn.GetRasterBand(1).ReadAsArray() - factor_2pi = np.round(phas / (2 * np.pi)).astype(np.int) + conn_comp + factor_2pi = np.round(phas / (2 * np.pi)).astype(int) + conn_comp factor_2pi = factor_2pi - np.min(factor_2pi) + 1 mask = conn_comp > 0