Skip to content

BUG: comtrade loading fails on data with digital signals only #49

@tobiassalem

Description

@tobiassalem

Our team have performed testing and come to the following conclusion.
This confirms that the file is status-only: no analog channels, only digital. This is exactly the scenario that triggers the bug in python-comtrade where get_reader_format() tries to format a string with {dcount} but passes the wrong key.

So yes, this information reinforces the conclusion:
✅ Your file is completely correct according to COMTRADE 2001.
✅ The bug is in the library's handling of status-only files.

It would be highly appreciated if this can be fixed ASAP.
The fix as such is very simple and I would be happy to create a small PR for it (it's practically a variable typo fix).
Our concern: there are many old open PRs and the activity on this repo is very low, Please confirm that it is active.
We have found no replacement Comtrade reader on pypi.org. Ref. https://pypi.org/project/comtrade/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions