Skip to content

Commit

Permalink
FIX: permutate topology edges, not property mappings (#217)
Browse files Browse the repository at this point in the history
* MAINT: import entire `itertools` module
* MAINT: improve order of function definitions
* MAINT: improve spin-0 removal syntax
* MAINT: switch to absolute imports
* MAINT: simplify `_KinematicRepresentation` class
* MAINT: test whether final state order matters

---------

Co-authored-by: Remco de Boer <redeboer@AcerAspire>
  • Loading branch information
redeboer and Remco de Boer authored Apr 13, 2023
1 parent 9e4c1e4 commit 7244d57
Show file tree
Hide file tree
Showing 7 changed files with 373 additions and 342 deletions.
7 changes: 1 addition & 6 deletions src/qrules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,7 @@ def check_edge_qn_conservation() -> Set[FrozenSet[str]]:
topology = create_n_body_topology(len(initial_state), len(final_state))
node_id = next(iter(topology.nodes))

initial_facts = create_initial_facts(
topology=topology,
particle_db=particle_db,
initial_state=initial_state,
final_state=final_state,
)
initial_facts = create_initial_facts(initial_state, final_state, particle_db)

check_pure_edge_rules()
violations = check_edge_qn_conservation()
Expand Down
Loading

0 comments on commit 7244d57

Please sign in to comment.