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

Investigate duplicate entries in DB. #880

Closed
tobiaskleiner opened this issue Apr 19, 2024 · 2 comments
Closed

Investigate duplicate entries in DB. #880

tobiaskleiner opened this issue Apr 19, 2024 · 2 comments

Comments

@tobiaskleiner
Copy link
Collaborator

I noticed that there was no alert when uploading two identical json files to the DB via add_value_from_json_to_db. The file in question is the photons_per_run.json, which was uploaded to the calibration_devices collection.
This should be avoided by simtools validator.

@GernotMaier
Copy link
Contributor

I think I misunderstood the issue first - this is actually a feature of the DB wand we want to keep this. We can (and want) upload the same model parameters. While reading, we always get the newest one.

This means that if you want to correct an entry, you just upload a new one.

@tobiaskleiner
Copy link
Collaborator Author

Ok thanks, then I will close the issue.

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

No branches or pull requests

2 participants