Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahalev/python-microgrid
/ _numpy_represent_int
Function
_numpy_represent_int
src/pymgrid/utils/serialize.py:71–72 ·
view source on GitHub ↗
(dumper, data)
Source
from the content-addressed store, hash-verified
69
70
71
def
_numpy_represent_int(dumper, data):
72
return
dumper.represent_int(data.item())
73
74
75
def
_numpy_arr_representer(dumper, data):
Callers
nothing calls this directly
Calls
1
item
Method · 0.80
Tested by
no test coverage detected