DHI/mikeio

mikeio.PfsDocument.copy() AssertionError: all targets must be PfsSections/dict

wu-hao-liang opened this issue · 0 comments

Describe the bug
a mikeio.PfsDocument cannot uses its .copy() method to return a PfsDocument or PfsSection class

To Reproduce
plc_template = mikeio.read_pfs(plc_template_path,unique_keywords=False)
plc_edit = plc_template.copy()
Error Message:
AssertionError: all targets must be PfsSections/dict (no key-value pairs allowed in the root)

Screenshots
image

System information:
Windows 10

  • Python 3.11
  • MIKE IO 1.5.1

Possible Cause
.copy() method hasn't been well inherited from mikeio.PfsSection.copy()