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

How to identify dataset #6

Open
baffelli opened this issue Dec 15, 2023 · 2 comments
Open

How to identify dataset #6

baffelli opened this issue Dec 15, 2023 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@baffelli
Copy link
Owner

baffelli commented Dec 15, 2023

I did some thinking and encountered the following problem:

For datasets identification, we have the following cases:

  1. Dataset connected to experiment
  2. Dataset connected to object
  3. Dataset anywhere identified by PermID
    The first two cases have the same identifier "/SPACE/PROJECT/CODE". However, PyBis can't distinguish these two cases. We could solve this in two ways:
  • Ask the user to specify whether the data is on a collection or on an object
  • Try searching for both cases and take the one that gives a result. In case of ambiguity, give an error message.

I favor the second solution. What do you think?

@baffelli baffelli added enhancement New feature or request question Further information is requested labels Dec 15, 2023
@michalogit
Copy link
Collaborator

I think that inside openBIS there cannot be an ambiguity for a dataset access path. That's my intuition as for the design principles.
pyBIS does not seem to worry about the potential ambiguity of paths. So I think we should not either.
Anyway, will try to ask Swen or Adam...

@baffelli
Copy link
Owner Author

While I agree that there's no ambiguity inside openbis, we don't know a priori - given the identifier only - whether this identifier points to a collection or to an object. That's the ambiguity i refer about. I don't know what's the best way to resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants