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
There are keywords without fields e.g. *CONTROL_DEBUG. An error is raised when one tries to write a deck containing a keyword without fields. Function def _field_iterator is called even if there are no fields and it requires at least one field.
---> 46 assert len(fields) > 0, "at least one field is needed"
47 if fields[0].offset > 0:
48 # insert a blank field in the beginning up to the offset
49 blank_field = Field(name=None, type=None, offset=0, width=fields[0].offset)
🔍 Before submitting the issue
🐞 Description of the bug
There are keywords without fields e.g. *CONTROL_DEBUG. An error is raised when one tries to write a deck containing a keyword without fields. Function def _field_iterator is called even if there are no fields and it requires at least one field.
---> 46 assert len(fields) > 0, "at least one field is needed"
47 if fields[0].offset > 0:
48 # insert a blank field in the beginning up to the offset
49 blank_field = Field(name=None, type=None, offset=0, width=fields[0].offset)
AssertionError: at least one field is needed
📝 Steps to reproduce
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
..
🐍 Which Python version are you using?
3.12
📦 Installed packages
The text was updated successfully, but these errors were encountered: