geodesymiami / insarmaps_scripts

0 stars 2 forks source link

Depreciation warnings #1

Closed stackTom closed 4 years ago

stackTom commented 4 years ago

Need to update scripts.

//login3/scratch/05861/tg851601/unittestGalapagosSenDT128[1014] cat  out_insarmaps.e
427487 features, 13202324 bytes of geometry, 64 bytes of separate metadata, 12520929 bytes of string pool
Choosing a base zoom of -B0 to keep 2 features in tile 0/0/0.
With gamma, effective base zoom of 12, effective drop rate of -nan
  99.9%  14/4035/8237  
/work/05861/tg851601/stampede2/test/dev1/rsmas_insar/sources/MintPy/mintpy/insarmaps/hdfeos5_2json_mbtiles.py:240: DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead
  start_time = time.clock()
/work/05861/tg851601/stampede2/test/dev1/rsmas_insar/sources/MintPy/mintpy/insarmaps/hdfeos5_2json_mbtiles.py:112: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
  m, c = np.linalg.lstsq(A, y)[0]
/work/05861/tg851601/stampede2/test/dev1/rsmas_insar/sources/MintPy/mintpy/insarmaps/hdfeos5_2json_mbtiles.py:312: DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead
  end_time =  time.clock()
stackTom commented 4 years ago

@falkamelung Fixed, please check it.