forked from kpedro88/pyfeyn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
60 additions
and
154 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from feynml.interface.madgraph.ps import ps_to_feynml | ||
|
||
|
||
def test_load_ps_lo(): | ||
fml = ps_to_feynml("tests/interface/lo.ps") | ||
assert fml != None | ||
assert len(fml.diagrams) == 2 | ||
fml.render() | ||
|
||
|
||
def test_load_ps_born(): | ||
fml = ps_to_feynml("tests/interface/born.ps") | ||
assert fml != None | ||
assert len(fml.diagrams) == 3 | ||
fml.render() | ||
|
||
|
||
def test_load_ps_born_matrix(): | ||
fml = ps_to_feynml("tests/interface/born_matrix.ps") | ||
assert fml != None | ||
assert len(fml.diagrams) == 1 | ||
fml.render() | ||
|
||
|
||
def test_load_ps_matrix_1(): | ||
fml = ps_to_feynml("tests/interface/matrix_1.ps") | ||
assert fml != None | ||
assert len(fml.diagrams) == 6 + 6 + 4 | ||
fml.render() | ||
|
||
|
||
def test_load_ps_matrix_2(): | ||
fml = ps_to_feynml("tests/interface/matrix_2.ps") | ||
assert fml != None | ||
assert len(fml.diagrams) == 5 | ||
fml.render() | ||
|
||
|
||
def test_load_ps_loop_matrix(): | ||
fml = ps_to_feynml("tests/interface/loop_matrix.ps") | ||
assert fml != None | ||
assert len(fml.diagrams) == 6 + 5 | ||
fml.render() |