test: diagram generator comparison tests #745
Open
+1,060
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR assumes the following PRs (but not included here yet):
The latter may not be needed depending on how we treat the cache files.
This PR introduces tests for comparing the diagram generator with QGRAF. The core routines also support FeynGraph, which could be helpful when we implement and test vacuum diagrams in the future (#485). For now, the test cases in the file cover only simple 1-loop diagrams and compare them with QGRAF.
The code contains two
#pipepreprocessor instructions. One checks whether a cache file exists (see also #240). The other checks the FeynGraph version, for which I couldn't find any way to get it from the result using a Jinja template.Open questions:
check,check/extraorcheck/diagrams)checkThe
CanonicalizeDiagramsprocedure may perform better if spectators are used in a smarter way.