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

Questions concerning instrument #36

Open
ivandga opened this issue Jun 16, 2022 · 1 comment
Open

Questions concerning instrument #36

ivandga opened this issue Jun 16, 2022 · 1 comment

Comments

@ivandga
Copy link

ivandga commented Jun 16, 2022

Hi,
I got two questions concerning "instrument"

  1. why does every entity automatically have the attribute "instrument"?
  2. If I include a sample in an instrument log entry, the sample will not show any information in the "instrument" attribute. Is it ok like this? I would have expected the "instrument" field in the sample mask to show, that I have used that sample with that instrument.

I am testing with the docker container on version 0.20.0

Best regards from DESY@Hamburg,
Ivan

@FlorianRhiem
Copy link
Member

Hey @ivandga,

instruments are used to map real instruments to the SampleDB actions that can be done with them. When you create an object using an action that was created for a specific instrument, then when viewing the object this instrument will be linked. When you create an object using an action that does not have an associated instrument, then no instrument will be linked on the page for this object.

As such, this relationship is transitive: Object -> Action -> Instrument, and the object itself does not have this attribute "Instrument" at all, it is only displayed as likely useful information about how/where the object was created.

This should then also explain why there is no connection between this displayed Instrument (the Instrument the object was created with) and any entries in any instrument log.

I hope this answered your question, also see the documentation on instruments.

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