-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support tag for builder app #323
base: develop
Are you sure you want to change the base?
Conversation
See also: #322
iquip/apps/explorer.py
Outdated
Returns: | ||
See BuilderInfoDialog. |
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 explicitly document that the returned tuple is (cls, tag)
.
You can still say "See BuilderInfoDialog."
iquip/apps/explorer.py
Outdated
tag: Additive tag for multiple builder apps. | ||
""" | ||
|
||
def __init__(self, experimentInfos: List[str], parent: Optional[QWidget] = None): |
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 is the name experimentInfos
instead of clsNames
for example?
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.
Based on your usage, I think it is not List
but Iterable
.
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 is the name experimentInfos instead of clsNames for example?
Umm.. I also think clsNames
is much proper. I will take it.
iquip/apps/explorer.py
Outdated
self.qiwiscall.createApp( | ||
name=f"builder - {self.selectedExperimentPath}:{experimentClsName}", | ||
name=f"builder {tag} - {self.selectedExperimentPath}:{cls}", |
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.
This will make 2 spaces for an empty tag.
See also: #322
Args: | ||
See thread.ExperimentInfoThread.fetched signal. |
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.
Now this is actually not a proper redirection, but I think it is pretty intuitive enough. If you agree with it, LGTM. You can update the docstring as well.
This closes #322.
Now, one can set tags for experiment classes, thus multiple builder apps for the same experiment class are available.