lanl / dfnWorks

dfnWorks is a parallelized computational suite to generate three-dimensional discrete fracture networks (DFN) and simulate flow and transport. If you download the software please fill out our interest form to stay up to date on releases https://goo.gl/forms/VE39oKsyp4LVC6Gj2 and join our google group https://groups.google.com/d/forum/dfnworks-users . Precompiled Docker Container https://hub.docker.com/r/ees16/dfnworks
https://dfnworks.lanl.gov/
Other
73 stars 42 forks source link

json error in dump_json from dfnGraph #36

Closed hymanjd closed 5 months ago

hymanjd commented 2 years ago
DFN.dump_json_graph(G, "fracture")

File "/Users/jhyman/.local/lib/python3.7/site-packages/pydfnworks-2.6.1-py3.7.egg/pydfnworks/dfnGraph/dfn2graph.py", line 834, in dump_json_graph json.dump(jsondata, fp) File "/Users/jhyman/opt/anaconda3/lib/python3.7/json/init.py", line 179, in dump for chunk in iterable: File "/Users/jhyman/opt/anaconda3/lib/python3.7/json/encoder.py", line 431, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/Users/jhyman/opt/anaconda3/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/Users/jhyman/opt/anaconda3/lib/python3.7/json/encoder.py", line 325, in _iterencode_list yield from chunks File "/Users/jhyman/opt/anaconda3/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/Users/jhyman/opt/anaconda3/lib/python3.7/json/encoder.py", line 438, in _iterencode o = _default(o) File "/Users/jhyman/opt/anaconda3/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.class.name} ' TypeError: Object of type int64 is not JSON serializable

hymanjd commented 5 months ago

fixed by v2.8