Skip to content

Commit

Permalink
FIX: Fix RSL Cython Interface (#1447)
Browse files Browse the repository at this point in the history
* FIX: Add isinstance checks to improve linting

* FIX: Fix the RSL interface for cython 3
  • Loading branch information
mgrover1 authored Aug 17, 2023
1 parent 70c314c commit 172bbcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyart/io/_rsl_interface.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ cpdef create_volume(
"""
# these variables can be moved to the module level if used elsewhere
cdef (float (*)(_rsl_h.Range)) * RSL_F_LIST = [
cdef (float (*)(_rsl_h.Range) noexcept) * RSL_F_LIST = [
_rsl_h.DZ_F, _rsl_h.VR_F, _rsl_h.SW_F, _rsl_h.CZ_F, _rsl_h.ZT_F,
_rsl_h.DR_F, _rsl_h.LR_F, _rsl_h.ZD_F, _rsl_h.DM_F, _rsl_h.RH_F,
_rsl_h.PH_F, _rsl_h.XZ_F, _rsl_h.CD_F, _rsl_h.MZ_F, _rsl_h.MD_F,
Expand All @@ -83,7 +83,7 @@ cpdef create_volume(
_rsl_h.SW_F, _rsl_h.DZ_F, _rsl_h.CZ_F, _rsl_h.PH_F, _rsl_h.SD_F,
_rsl_h.DZ_F, _rsl_h.DZ_F]

cdef (_rsl_h.Range (*)(float)) * RSL_INVF_LIST = [
cdef (_rsl_h.Range (*)(float) noexcept) * RSL_INVF_LIST = [
_rsl_h.DZ_INVF, _rsl_h.VR_INVF, _rsl_h.SW_INVF, _rsl_h.CZ_INVF,
_rsl_h.ZT_INVF, _rsl_h.DR_INVF, _rsl_h.LR_INVF, _rsl_h.ZD_INVF,
_rsl_h.DM_INVF, _rsl_h.RH_INVF, _rsl_h.PH_INVF, _rsl_h.XZ_INVF,
Expand Down

0 comments on commit 172bbcf

Please sign in to comment.