Skip to content

Commit

Permalink
Bugfix - Fix for numpy 1.24
Browse files Browse the repository at this point in the history
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
  • Loading branch information
Adam.Dybbroe committed Jan 13, 2023
1 parent 47e6aff commit 7207630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nwcsaf_formats/pps_conversions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2014, 2015, 2019 Adam.Dybbroe
# Copyright (c) 2014, 2015, 2019, 2023 Adam.Dybbroe

# Author(s):

Expand Down Expand Up @@ -285,7 +285,7 @@ def old_processing_flag_palette(product):
' not supported!')

# Outputvaluenamelist:
comp_type = np.dtype([('outval_name', np.str, 128), ])
comp_type = np.dtype([('outval_name', str, 128), ])
vnamelist = []
for i, item in enumerate(names):
bitvalue = 2 ** i
Expand All @@ -298,7 +298,7 @@ def old_ctype_palette():
"""Make the old cloudtype output_value_namelist for hdf5 file"""

# Outputvaluenamelist:
comp_type = np.dtype([('outval_name', np.str, 128), ])
comp_type = np.dtype([('outval_name', str, 128), ])
vnamelist = []
for i, item in enumerate(OLD_CTYPE_NAMES):
vnamelist.append(str(i) + ": " + item)
Expand Down

0 comments on commit 7207630

Please sign in to comment.