Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for creation of empty FCS files #26

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Conversation

tristan-ranff
Copy link
Contributor

Hey,

Thank you for providing this lightweight tool. I have some use-cases where I need to perform filtering on an FCS file, which can result in an empty event_data array. Typically, this would raise a ValueError. However, by removing a couple of lines, I can still write the file to disk while retaining the metadata. Maybe you could drop this as I haven't noticed any problems with the created files.

@whitews whitews changed the base branch from master to develop November 8, 2023 14:29
@whitews
Copy link
Owner

whitews commented Nov 8, 2023

Hi Tristan,

Thanks for the PR. Re-reading through the FCS 3.1 spec, I see no language disallowing zero event data sections. Can you add a test for creating and reading an empty FCS file to flowio/tests/fcs_write_tests.py?

Thanks,
Scott

@tristan-ranff
Copy link
Contributor Author

Hi Scott,

I added a test as per your request. Hope that does the trick.

@whitews whitews merged commit e4152e9 into whitews:develop Nov 30, 2023
@whitews
Copy link
Owner

whitews commented Nov 30, 2023

Thanks Tristan!

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.

None yet

2 participants