Skip to content

Deprecation warning for ctypes function #6

Closed

Description

@claxerity

Hi!

When using the ndtable class I get a few deprecation warning since a deprecated functions from ctypes is used.

\sdf\ndtable.py:93: DeprecationWarning: "get_as_parameter" is deprecated. Use "as_parameter" instead
scales_[i] = scale.ctypes.get_as_parameter()

\sdf\ndtable.py:94: DeprecationWarning: "get_as_parameter" is deprecated. Use "as_parameter" instead
self._table = create_table(c_int(data.ndim), dims.ctypes.get_as_parameter(), data.ctypes.get_as_parameter(), scales)

\sdf\ndtable.py:168: DeprecationWarning: "get_as_parameter" is deprecated. Use "as_parameter" instead
params[i] = param.ctypes.get_as_parameter()

\sdf\ndtable.py:176: DeprecationWarning: "get_as_parameter" is deprecated. Use "as_parameter" instead
values.ctypes.get_as_parameter())

Best regards!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions