Commit d92453bd authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Replaced deprecated numpy data types. Bumped version.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 887d87eb
Pipeline #35610 passed with stages
in 1 minute and 57 seconds
......@@ -2,6 +2,12 @@
History
=======
0.6.1 (2021-12-02)
------------------
* Replaced deprecated numpy data types.
0.6.0 (2021-10-12)
------------------
......
......@@ -182,7 +182,7 @@ class RelativeSpectralResponse(object):
df = df.join(Series(rsrs_tgtres, index=wvls_tgtres, name=bandname))
df = df.fillna(0)
wvl = np.array(df.index.astype(np.float))
wvl = np.array(df.index.astype(float))
rsrs_norm01 = df.to_dict(orient='series') # type: Dict[Series]
################
......@@ -190,7 +190,7 @@ class RelativeSpectralResponse(object):
################
for bN in rsrs_norm01:
self.rsrs_norm01[bN] = rsr = np.array(rsrs_norm01[bN], dtype=np.float)
self.rsrs_norm01[bN] = rsr = np.array(rsrs_norm01[bN], dtype=float)
self.rsrs[bN] = rsr / np.trapz(x=wvl, y=rsr) # TODO seems like we NEED nanometers here; BUT WHY??
self.rsrs_wvl = np.array(wvl)
......
......@@ -24,5 +24,5 @@
# limitations under the License.
__version__ = '0.6.0'
__versionalias__ = '20211012.01'
__version__ = '0.6.1'
__versionalias__ = '20211202.01'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment