Skip to content

Conversation

@AmandaBirmingham
Copy link
Collaborator

Prevent parsing exception caused by CR newlines
Interpret any values listed as "<0.00" as 0.00
Interpret any values listed as ">some numeric value" as some numeric value
Interpret any concentrations listed as a bunch of question marks (when you overflow the sensor; usually sample being too concentrated) as the highest concentration value in that particular file
Raise an error if, after these fixes, there are any concentration values that are still NaN

…ml so we can catch this error? Something like this to the end of the tests:

labman &
LABMAN_PID=$!
sleep 5 # or 10?
kill $LABMAN_PID
"
# Conflicts:
#	.travis.yml
Prevent parsing exception caused by CR newlines
Interpret any values listed as "<0.00" as 0.00
Interpret any values listed as ">(some numeric value)" as "(some numeric value)"
Interpret any values listed as a bunch of question marks (when you overflow the sensor; usually sample being too concentrated) as the highest quantification value in that particular file
Raise an error if, after these fixes, there are any concentration values that are still NaN
@AmandaBirmingham AmandaBirmingham requested review from ElDeveloper and antgonza and removed request for ElDeveloper August 9, 2018 18:45
Copy link
Member

@wasade wasade left a comment

Choose a reason for hiding this comment

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

Nothing stood out to me on a static review, this looks good!

Copy link
Collaborator

@antgonza antgonza left a comment

Choose a reason for hiding this comment

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

One question. If answer is "yes, the user can see it via gui", let's ignore, if is not; let's open an issue to display errors via the GUI.

# if there are any NaN concentrations left, there's a problem with the
# parsing, so throw an error
if pico_df[conc_col_name].isnull().any():
raise ValueError("Some concentrations in pico green quantitation "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this actually reported to user in the GUI? In other words, when you do this via the GUI and leave NaNs do you see this error?

----- As this is not part of this PR, if the answer is no; let's just open an issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@antgonza Finally hunted this down :) The error is reported to the user in the web browser, albeit in a totally unpolished way:

screen shot 2018-08-22 at 4 19 45 pm

Would you like me to open an issue to have it reported within the Labman page chrome, like the example below is?

screen shot 2018-08-13 at 11 33 34 am

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks. Let's open an issue but make it the least priority possible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will do ;)

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.

4 participants