You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixes#954.
We support deserializing HUGRs that do not have a `metadata` field.
We could optimise a little by not serializing a `metadata` field when
all node metadata fields are null, but for now we don't bother.
---------
Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com>
Rust defines a field for node metadata.
hugr/hugr/src/hugr/serialize.rs
Lines 56 to 59 in 9d2de07
But this is missing from the schema.
hugr/hugr-py/src/hugr/serialization/serial_hugr.py
Lines 12 to 17 in 9d2de07
While we are fixing this, we should probably address the TODO on the rust definition, and make the each node's metadata an
Option<HashMap<String, _>>
.The text was updated successfully, but these errors were encountered: