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

Support tag for builder app #323

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

BECATRUE
Copy link
Member

This closes #322.

Now, one can set tags for experiment classes, thus multiple builder apps for the same experiment class are available.

- Dialog: Supports for selecting an experiment class and editing its tag. - Upper builder: Without a tag. - Lower builder: With the tag, "123".

@BECATRUE BECATRUE added the enhancement New feature or any improvements to codes label Feb 14, 2025
@BECATRUE BECATRUE self-assigned this Feb 14, 2025
@BECATRUE BECATRUE requested a review from kangz12345 as a code owner February 14, 2025 05:23
Comment on lines 136 to 137
Returns:
See BuilderInfoDialog.
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 explicitly document that the returned tuple is (cls, tag).
You can still say "See BuilderInfoDialog."

tag: Additive tag for multiple builder apps.
"""

def __init__(self, experimentInfos: List[str], parent: Optional[QWidget] = None):
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member Author

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.

self.qiwiscall.createApp(
name=f"builder - {self.selectedExperimentPath}:{experimentClsName}",
name=f"builder {tag} - {self.selectedExperimentPath}:{cls}",
Copy link
Member

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
@BECATRUE BECATRUE requested a review from kangz12345 February 14, 2025 08:51
Comment on lines +111 to +112
Args:
See thread.ExperimentInfoThread.fetched signal.
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or any improvements to codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support tag for builder app
2 participants