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

update_processes api for checking and custom dependencies #183

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

feefladder
Copy link
Contributor

@feefladder feefladder commented Mar 25, 2021

  • Closes #xxxx
  • Tests added
  • Passes black . && flake8
  • Fully documented, including whats-new.rst for all changes and api.rst for new API

#depends on #179 #178

what's new in #182

Comment on lines 474 to 510
{"a": A, "b": B, "c": C, "d": D},
custom_dependencies={"d": "c", "c": "b", "b": "a"},
{"a": A, "b": B, "c": C, "d": D, "e": E},
custom_dependencies={"d": "c", "c": "b", "b": {"a", "e"}},
)
model = model.drop_processes(["b", "c"])
assert model.dependent_processes["d"] == ["a"]
assert set(model.dependent_processes["d"]) == {"a", "e"}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was referenced Mar 26, 2021
feefladder pushed a commit to feefladder/xarray-simlab that referenced this pull request Apr 6, 2021
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.

1 participant