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

call of "self.context().get_recipe()", should be "self.context.get_recipe()"? #407

Open
dean-krueger opened this issue Jan 13, 2025 · 0 comments
Assignees

Comments

@dean-krueger
Copy link

Home >> CYCLUS Archetype Developer Guide >> Dynamic Resource Exchange >> Request for Bids Phase >> Python

The sample code reads:

def get_material_requests(self):
request_qty = 10.0 # kg
# Material Target A
recipe_a = self.context().get_recipe("recipeA")
target_a = ts.Material.create_untracked(request_qty, recipe_a)

should it instead be:

def get_material_requests(self):
request_qty = 10.0 # kg
# Material Target A
recipe_a = self.context.get_recipe("recipeA")
target_a = ts.Material.create_untracked(request_qty, recipe_a)

ie. self.context.get_recipe("recipeA") instead of self.context().get_recipe("recipeA")?

@dean-krueger dean-krueger converted this from a draft issue Jan 13, 2025
@dean-krueger dean-krueger moved this from In Progress to On Deck in Documentation Review Jan 13, 2025
@dean-krueger dean-krueger self-assigned this Jan 13, 2025
@dean-krueger dean-krueger moved this from On Deck to Backlog in Documentation Review Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant