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: Fix error for NanoDrop Eight Adapter where the column names are different than the expected. #728

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joshua-benchling
Copy link
Collaborator

  • Standardize the column names used in the NanoDrop eight adapter

@@ -7,13 +7,22 @@
from allotropy.parsers.lines_reader import CsvReader
from allotropy.parsers.utils.pandas import read_csv

COLUMNS_MAP = {
"Sample Name": ["Sample"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

The preferred approach for this is to add options to the SeriesData getter, e.g:

data.get(str, "Sample") -> data.get(str, ["Sample", "Sample Name"])

This would address date/sample, but I noticed we only use "Sample" to detect the start of the table.

I went ahead and refactored the reader a bit to make it more robust, and addressed this fix while I was at it, here: #731

So, you can go ahead and close this PR out.

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