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

228 prevent two strands with the same name #257

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

lia-n2
Copy link

@lia-n2 lia-n2 commented Apr 16, 2024

No description provided.

@abstractmethod
def name(self) -> str:
pass
# @property
Copy link
Member

Choose a reason for hiding this comment

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

Let's not leave dead comments like this, just delete them.

@@ -2283,7 +2283,7 @@ class Strand(Part, JSONSerializable):
or 384-well plates.
"""

_name: str | None = None
name: str
"""Optional name of strand."""
Copy link
Member

Choose a reason for hiding this comment

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

name is not optional

@@ -2666,7 +2666,7 @@ def name(self) -> str:
if self._name is None:
self._name = self.domain_names_concatenated()
return self._name
Copy link
Member

Choose a reason for hiding this comment

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

Why are there two return statements one after the other here?

@@ -2283,7 +2283,7 @@ class Strand(Part, JSONSerializable):
or 384-well plates.
"""

_name: str | None = None
name: str
Copy link
Member

Choose a reason for hiding this comment

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

There should be an error since name is being declared after vendor_fields, since non-optional fields need to precede optional fields

@dave-doty dave-doty marked this pull request as draft April 17, 2024 21:01
@dave-doty dave-doty marked this pull request as ready for review April 17, 2024 21:01
@dave-doty dave-doty changed the base branch from main to dev April 17, 2024 21:02
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