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

Instrument PIDs not configurable #1625

Open
cchndl opened this issue Jan 14, 2025 · 1 comment
Open

Instrument PIDs not configurable #1625

cchndl opened this issue Jan 14, 2025 · 1 comment

Comments

@cchndl
Copy link
Contributor

cchndl commented Jan 14, 2025

I am a bit confused regarding the PIDs and instruments.
As far as I understand, the PID for each instrument should point to somewhere like a publication describing the instrument. Or at least something that does not change over scicat instances.
For example in these two cases:

  • two catalogues with the same instruments would have different PIDs
  • When we set up a new instance all the pids would change, wouldn't they? On data loss etc.

Right now, when I create a new instrument over the REST API, the fields id, _id, and pid all contain the same value. That there is an internal id is obvious, but shouldn't the pid be controllable?

Is there a possibility of configuring it that I am missing, or am I misunderstanding that field entirely?

Thanks in advance!

  • cchndl
@sbliven
Copy link
Member

sbliven commented Jan 23, 2025

We don't use instruments at our facility, but looking over the schema it looks like uniqueName could be used to identify an instrument across multiple scicat instances.

id and _id are always the same and are the mongodb document identifier. For datasets the PID can be different (it is assignable by users in CREATE_DATASET_WITH_PID_GROUPS). It looks like we never had a request for custom instrument pids.

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