Skip to content

258 remove strand groups#259

Open
mobinano wants to merge 16 commits intomainfrom
258-remove-strand-groups
Open

258 remove strand groups#259
mobinano wants to merge 16 commits intomainfrom
258-remove-strand-groups

Conversation

@mobinano
Copy link
Copy Markdown

No description provided.

Comment thread nuad/constraints.py Outdated
domain_names_key = 'domain_names'
starred_domain_indices_key = 'starred_domain_indices'
group_key = 'group'
group_key = 'label'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should just remove the field group (and the constant group_key)

Comment thread nuad/constraints.py Outdated
class VendorFields(JSONSerializable):
"""Data required when ordering DNA strands from a synthesis company such as
`IDT (Integrated DNA Technologies) <https://www.idtdna.com/>`_.
`IDT (Integrated DNA Technologies) <https://www.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like this URL got messed up.

Comment thread nuad/constraints.py


default_strand_group = 'default_strand_group'
default_strand_label = 'default_strand_label'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we don't have a default label since it is an optional field

Comment thread nuad/constraints.py
group: str = default_strand_group,
name: str | None = None,
label: str | None = None,
label: str = default_strand_label,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

label should be optional

Comment thread nuad/constraints.py
by calling ``json.dumps(d)``.
"""
dct: Dict[str, Any] = {name_key: self.name, group_key: self.group}
dct: Dict[str, Any] = {name_key: self.name, label_key: self.label}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

only include label_key if the label is not None

Comment thread nuad/constraints.py
"""

strands_by_group_name: Dict[str, List[Strand]] = field(init=False)
strands_by_label_name: Dict[str, List[Strand]] = field(init=False)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't want this field.

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