When using the get it is not straight forward to find a non-uniquely named experiment.
For me this code:
host = "criptapp.org"
token = argv[0]
cript.API(host, token)
proj = cript.Project.get(name="Monomeric sidechain dipole orientation and its effect on microphase separation: experiment and simulation via structural isomer variation")
coll = cript.Collection.get(name="3-mer simulations")
expt = cript.Experiment.get(name="test")
Results in a cript.api.exceptions.APIError: Server error 403
I assume that there is another Experiment with the name test that I don't have access to.
Even though there is an Experiment in my collection with that name!
The response of get should default to an object that the user has access to.
And ONLY if there is no findable object with access permission should it return a 403.
When using the
get
it is not straight forward to find a non-uniquely named experiment.For me this code:
Results in a
cript.api.exceptions.APIError: Server error 403
I assume that there is another Experiment with the name
test
that I don't have access to. Even though there is an Experiment in my collection with that name!The response of
get
should default to an object that the user has access to. And ONLY if there is no findable object with access permission should it return a 403.It would also help if I could use
get
like.But that throws an
TypeError: Object of type Collection is not JSON serializable