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

DPL-1099 Added double label for bioscan lysate plate #1635

Merged
merged 11 commits into from
Mar 25, 2024

Conversation

andrewsparkes
Copy link
Member

@andrewsparkes andrewsparkes commented Mar 19, 2024

Closes #4019

Adds a second label for the Bioscan lysate plate which has the supplier partner plate id barcode on it that was stored in the sample metadata in sample_description.

Needs physical testing onsite.

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.82%. Comparing base (c9e640a) to head (d75b91c).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1635      +/-   ##
===========================================
+ Coverage    90.79%   90.82%   +0.02%     
===========================================
  Files          362      363       +1     
  Lines         7467     7490      +23     
===========================================
+ Hits          6780     6803      +23     
  Misses         687      687              
Flag Coverage Δ
javascript 93.65% <ø> (ø)
pull_request 90.82% <100.00%> (?)
push 90.81% <100.00%> (+0.01%) ⬆️
ruby 90.42% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrewsparkes andrewsparkes marked this pull request as ready for review March 19, 2024 09:57
@andrewsparkes andrewsparkes self-assigned this Mar 19, 2024
end

# Fetch the partner id from the first well that has a sample.
# Assumption: The partner id is stored in the sample description, and all wells woth
Copy link
Member

Choose a reason for hiding this comment

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

typo: all wells with

Copy link
Member Author

Choose a reason for hiding this comment

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

thx changed

@yoldas yoldas self-requested a review March 25, 2024 10:51
Copy link
Member

@yoldas yoldas left a comment

Choose a reason for hiding this comment

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

Looks good.

Copy link
Contributor

@sdjmchattie sdjmchattie left a comment

Choose a reason for hiding this comment

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

Unsure whether a restructure/refactor is needed here. I won't approve or request changes.

end

# Define the second label for the lysate plate
def intermediate_attributes
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be worth a refactor on the name of these attributes? It seems like this name was perhaps relevant to another type of label printing but I think in this case you're trying to print two labels to capture more information in the same piece of labware?

I just wouldn't know what intermediate attributes means if I was looking at this code for the first time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Have renamed a couple of those methods in the label class to (I think) make more sense.
I don't really follow why extra_attributes is separated (it seems to make an extra 6mm label for 384-well plates but why is that different to additional_attributes?) or what sprint_attributes is doing.

Copy link
Contributor

@sdjmchattie sdjmchattie left a comment

Choose a reason for hiding this comment

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

Very nice to see the methods being more descriptive 👍🏻

Copy link

codeclimate bot commented Mar 25, 2024

Code Climate has analyzed commit d75b91c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 90.4% (0.1% change).

View more on Code Climate.

@andrewsparkes andrewsparkes merged commit f6d9539 into develop Mar 25, 2024
12 checks passed
@andrewsparkes andrewsparkes deleted the dpl-1099-bioscan-partner-id-on-lysate-label branch March 25, 2024 14:35
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.

DPL-1099 Bioscan: Addition of partner plate ID (sample description) to the LBSN-96 Lysate template
3 participants