Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforce_complex does not work anymore? #29

Open
gkdgoutam opened this issue Feb 2, 2023 · 4 comments
Open

enforce_complex does not work anymore? #29

gkdgoutam opened this issue Feb 2, 2023 · 4 comments
Labels

Comments

@gkdgoutam
Copy link

gkdgoutam commented Feb 2, 2023

Hi,

I wanted to ask if the enforce_complex=False functionality is obsolete in the newer/newest versions.
With version 1.4.x if I set it to False, it will not do the imaginary part of the integration (with Vegas).
Whereas, in the 1.5.x version, it seems like whether you set it to True/False, it always does the imaginary part of the integration, although in the integrand there is no such imaginary part.
Is this functionality doing what it should do?

PS. The imaginary integration is fast of course as there is nothing to integrate and prints a 0 (x e-19 I) (still it is using computing resources).

Kind regards,
GD

@vsht
Copy link

vsht commented Feb 6, 2023

Hi Goutam,

I think that the option that works in newer pySecDec versions is called contour_deformation. Setting it to False effectively
disables the calculation of the imaginary part.

Cf. also here

Cheers,
Vladyslav

@gkdgoutam
Copy link
Author

Hi Vlad,

Thanks for the hint. I found contour_deformation_polynomial=None instead.
However, this does not stop it.

@KernerM KernerM added the bug label Feb 7, 2023
@KernerM
Copy link
Collaborator

KernerM commented Feb 7, 2023

Hi Goutam,

I can confirm that the flag enforce_complex is not working as intendended. This should only have a minor impact on the integration time, but we will try to fix this.

@spj101
Copy link
Collaborator

spj101 commented Jun 2, 2023

@KernerM is this resolved in v1.6 or still todo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants