call of "self.context().get_recipe()", should be "self.context.get_recipe()"?
@dean-krueger is already working on this.
Since Jan 13, 2025.
Assessment
This issue has not been assessed yet.
Description
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")?
- Dominant language
- Python
- Stars
- 8
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cyclus/cyclus.github.com
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cyclus/cyclus.github.com#454 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
cyclus/cyclus.github.com#453 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
cyclus/cyclus.github.com#448 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cyclus/cyclus.github.com#445 ·
-
[Task] Update tutorial files in Zenodo ObjectMay be free again @connor-welch claimed this 260 days ago, and no pull request is open. Open0 - Backlog
cyclus/cyclus.github.com#441 · 3 comments · 1 assignee ·
All issues in cyclus/cyclus.github.com
Similar issues
-
P4: low tooling
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jeffknupp/association#318 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
petercorke/robotics-toolbox-python#709 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
MakerYuichi/Aegis-pro#114 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mpfaffenberger/code_puppy#985 · 2 comments ·
Maintainers usually reply within 1 day