Skip to content

Commit

Permalink
Update np.int to int (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamuzakki authored Apr 4, 2024
1 parent 0efc3cf commit 7de325f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/miaplpy/find_short_baselines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down
2 changes: 1 addition & 1 deletion src/miaplpy/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/miaplpy/unwrap_ifgram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7de325f

Please sign in to comment.