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

Make machine argument optional #18

Merged
merged 3 commits into from
Oct 26, 2023
Merged

Make machine argument optional #18

merged 3 commits into from
Oct 26, 2023

Conversation

Asa-Kosto-QTM
Copy link
Collaborator

allow full e2e use without specifying a machine object

Copy link
Member

@qartik qartik left a comment

Choose a reason for hiding this comment

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

Looking good. Left one suggestion.

else:
msg = "no machine found"
raise ValueError(msg)
placed = place_and_route(shards, machine)
Copy link
Member

Choose a reason for hiding this comment

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

Consider:

-    if machine:
-        logger.debug("Performing placement and routing...")
-        placed = place_and_route(shards, machine)
-    else:
-        placed = place_and_route(shards, machine)
+    logger.debug("Performing placement and routing...")
+    placed = place_and_route(shards, machine)

Copy link
Collaborator

@peter-campora peter-campora left a comment

Choose a reason for hiding this comment

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

Looks good. Will be nice to see the test cases in test_api get fleshed out a bit more later.

@qartik qartik changed the title Allow no machine specified Make machine argument optional Oct 26, 2023
@qartik qartik merged commit 97c539b into main Oct 26, 2023
1 check passed
@qartik qartik deleted the asa-working-branch branch October 26, 2023 16:57
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.

3 participants