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

Fix multi file reading where columns are missing in some files #162

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

tomjholland
Copy link
Collaborator

This pull request includes several changes to the pyprobe/cyclers/basecycler.py file and its corresponding test file. The changes focus on improving the handling of dataframes with missing columns and updating the concatenation method for dataframes. Additionally, a new test case has been added to verify the handling of missing columns.

Changes to dataframe handling:

  • pyprobe/cyclers/basecycler.py: Modified the _get_dataframe_list method to fill missing columns with null values instead of excluding dataframes with missing columns.
  • pyprobe/cyclers/basecycler.py: Updated the get_imported_dataframe method to use the "diagonal" concatenation method instead of "vertical".

Changes to tests:

@tomjholland tomjholland added the backend Related to the business logic of the tool label Nov 18, 2024
@tomjholland tomjholland merged commit eadbd32 into main Nov 18, 2024
2 checks passed
@tomjholland tomjholland deleted the fix-multi-file-reading branch November 18, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to the business logic of the tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix error when Biologic reads a Modulo Bat file that contains only an rest
1 participant