Skip to content

Random seed value each time get_random_db_interface is executed

Karim Ahmed requested to merge fix/new_random_seed_for_multiprocesses into master

@klackova reported an issue for having a report with multiple warnings that constants were previously injected.

These Warnings state that constants were injected previously and will not be injected again. After checking CALCAT it is observed that the mentioned constants were injected during the same processing with the Warnings.

https://in.xfel.eu/calibration/reports/2464 https://in.xfel.eu/calibration/reports/2473 https://in.xfel.eu/calibration/reports/2472

Description

From the calibrationDBRemote and debugging cal_tools.

Initializing the random generator using a random seed value. Solved this issue.

As the issue was pretty reproducible during testing with max-exfl017. I could make sure that the issue disappeared with the fix.

How Has This Been Tested?

Tested by running the SUMMARY FF notebook with one of the mentioned FF processings but while injecting to max-exfl017 and saving no local constants.

Relevant Documents (optional)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

Reviewers

@schmidtp @klackova @danilevc

Merge request reports