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

try using in-built factory method #204

Closed
wants to merge 1 commit into from

Conversation

mgcam
Copy link
Member

@mgcam mgcam commented Feb 29, 2024

No description provided.

Copy link
Collaborator

@nerdstrike nerdstrike left a comment

Choose a reason for hiding this comment

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

More lines, but I like that we're not actively copying properties over. It is a little bit magical...

title="Run name", description="PacBio run name as registered in LIMS"
title="Run name",
description="PacBio run name as registered in LIMS",
validation_alias="pac_bio_run_name",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oooh clever!

well_complete_time: datetime = Field(default=None, title="Well complete time")
run_status: str = Field(default=None, title="Current PacBio run status")
well_status: str = Field(default=None, title="Current PacBio well status")
run_start_time: Optional[datetime] = Field(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the emerging preference is now datetime | None rather than using Optional. Requires newer Python versions, but I think we're new enough already.

@mgcam mgcam force-pushed the use_builtin_factory branch 2 times, most recently from fad25e9 to 3e49222 Compare February 29, 2024 14:42
Simplified the code that uses this class and extends it.

Optimised the use of methods that return QC state(s) for
a product(s) according to the context.
@mgcam mgcam force-pushed the use_builtin_factory branch from 3e49222 to 249f031 Compare February 29, 2024 15:07
@mgcam mgcam marked this pull request as draft March 5, 2024 09:29
@mgcam mgcam closed this Mar 5, 2024
@mgcam mgcam deleted the use_builtin_factory branch June 7, 2024 17:12
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