Skip to content

Conversation

@jkuhl-uni
Copy link
Collaborator

Hi,
this is the second part to #275. With this PR, I'm introducing more sophisticated checking of the structure of append-mode files. In particular, the length of the header for each config can have a different length. This is particularly useful when the first config (that this not written with append mode) has slightly different output.
Now the user gets a warning about this and only the "data part" of each chunk is checked to be of equal length.

Also in #275, there was a small bug that I corrected while reimplementing the check for the file structure.

@jkuhl-uni jkuhl-uni requested a review from fjosw as a code owner November 10, 2025 08:19
Copy link
Owner

@fjosw fjosw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you plan to use and extend the sfcf input functionality longterm? If so, it might be worth refactoring the module as a lot of special cases and custom logic has accumlated over time which feels prone to non-trivial bugs.

@fjosw fjosw merged commit da399b7 into fjosw:develop Nov 25, 2025
11 checks passed
@jkuhl-uni
Copy link
Collaborator Author

jkuhl-uni commented Nov 25, 2025

Yes, I agree. At the moment, I am not planning to extend its functionality, but I can start to refactor it again when I have time (maybe also after we merged the typehints).
I have to rethink how to make it less confusing while keeping current functionality.

@jkuhl-uni jkuhl-uni deleted the fix/check_append_rep branch November 25, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants