Propose fix for nc/idl map#284
Conversation
|
Hi! |
|
Thanks for looking into this! I agree that the old implementation contained a bug and think the code change is right. There might be another issue in the documentation of I was also worrying if the computation of the thermalization offset could create problems in the case where the number of thermalization trajectories is no multiple of |
|
Thank you for having a look at this. Indeed, the case you describe would be problematic, if it was possible. |
|
Hi, I agree that it is a good idea to explicitly check. One could also use the slightly more simple check In terms of the docstring, I think your fix is not quite correct. If we have a setup where in the openQCD input file, we would have to set |
|
Yes, you are right in both points. |
|
In the (unlikely, but okay) case that one chose then On the second point: |
|
|
|
Good. Agreed. |
|
Great! I think this can be merged. With the flow file that is currently present in the test directory, I could not come up with a test that could check the proper behavior, as the only variation that we can do is to use either |
This is the fix I would propose for #283.
The interplay of this change and the lines 379, 380 is a bit strange to me.
In the proposed change, those lines would only play a role, if
dtr_read < diffmeasand we needdiffmeasto find the configuration numbers.This would mean that, if I were to use
dtr_read = n * diffmeas, I would end up with 1/n of the statistics and, obviously, a wrongidl, in which the indices are 1/n of their actual value).