diff options
Diffstat (limited to 'src/ee/kicad')
-rw-r--r-- | src/ee/kicad/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ee/kicad/__init__.py b/src/ee/kicad/__init__.py index b51e7db..d949fbe 100644 --- a/src/ee/kicad/__init__.py +++ b/src/ee/kicad/__init__.py @@ -45,10 +45,11 @@ def to_pandas(obj: Any, **kwarg): fields = { "ref": c.ref, "ref_type": c.ref_type, - "ref_num": c.ref_num, "value": c.value, "footprint": c.footprint, } + if c.has_ref_num: + fields["ref_num"] = c.ref_num fields.update({f.name: f.value for f in c.fields if f.is_custom}) return fields |