FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs(#1484): document pair-keyed part-to-master invariant in _propagate_restrictions by dimitri-yatsenko · Pull Request #1494 · datajoint/datajoint-python · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 6 additions & 0 deletions src/datajoint/diagram.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,12 @@ def _propagate_restrictions(self, start_node, mode, part_integrity="enforce"):
Walks the dependency graph in topological order, applying
propagation rules at each edge. Only processes descendants of
start_node to avoid duplicate propagation when chaining.

Invariant (``part_integrity="cascade"``): each restricted Part fires
its own upward walk to its Master exactly once — deduplicated per
``(part, master)`` pair (``visited_part_master_pairs``), not per
master — so a Master reached through several restricted Parts is
restricted from every one of them.
"""

sorted_nodes = topo_sort(self)
Expand Down
Loading

Back | FazBrowse Home | New Git URL