-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: dev
Are you sure you want to change the base?
Conversation
Removed _name in Strand Class
nuad/constraints.py
Outdated
@abstractmethod | ||
def name(self) -> str: | ||
pass | ||
# @property |
There was a problem hiding this comment.
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.
nuad/constraints.py
Outdated
@@ -2283,7 +2283,7 @@ class Strand(Part, JSONSerializable): | |||
or 384-well plates. | |||
""" | |||
|
|||
_name: str | None = None | |||
name: str | |||
"""Optional name of strand.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name is not optional
nuad/constraints.py
Outdated
@@ -2666,7 +2666,7 @@ def name(self) -> str: | |||
if self._name is None: | |||
self._name = self.domain_names_concatenated() | |||
return self._name |
There was a problem hiding this comment.
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?
nuad/constraints.py
Outdated
@@ -2283,7 +2283,7 @@ class Strand(Part, JSONSerializable): | |||
or 384-well plates. | |||
""" | |||
|
|||
_name: str | None = None | |||
name: str |
There was a problem hiding this comment.
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
No description provided.