Skip to content

Conversation

@tueda
Copy link
Collaborator

@tueda tueda commented Nov 24, 2025

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 #pipe preprocessor 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:

  • where to place this file (check, check/extra or check/diagrams)
  • whether to use the cache and where to store cache files
  • which test cases should be the defaults if we put this file in check

The CanonicalizeDiagrams procedure may perform better if spectators are used in a smarter way.

@coveralls
Copy link

coveralls commented Nov 24, 2025

Coverage Status

coverage: 57.121% (+0.003%) from 57.118%
when pulling 97fe0e1 on tueda:pr/test/diagram-comparison
into a405343 on form-dev:master.

@tueda tueda force-pushed the pr/test/diagram-comparison branch from 93412ae to 97fe0e1 Compare November 25, 2025 03:52
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.

2 participants