You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing with the library and noticed the following: When creating an object of type Dataset with type=DatasetType.raw, then calling its .dict() method, the principalInvestigator and creationLocation fields go missing. I think this might be related to #25?
As you can see, the mentioned attributes are gone. When going ahead and passing this to ScicatClient.upload_raw_dataset(), this causes the following error:
pyscicat.client.ScicatCommError: Error creating raw dataset {'statusCode': 422, 'name': 'ValidationError', 'message': "The `RawDataset` instance is not valid. Details: `principalInvestigator` can't be blank (value: undefined); `creationLocation` can't be blank (value: undefined).", 'details': {'context': 'RawDataset', 'codes': {'principalInvestigator': ['presence'], 'creationLocation': ['presence']}, 'messages': {'principalInvestigator': ["can't be blank"], 'creationLocation': ["can't be blank"]}}}
The text was updated successfully, but these errors were encountered:
I think I may have used the library wrong. I blindly copy-pasted the code from your guide without realising it refers to an ancient version of the library. Maybe you could update the page?
Hi,
I was playing with the library and noticed the following: When creating an object of type
Dataset
withtype=DatasetType.raw
, then calling its.dict()
method, theprincipalInvestigator
andcreationLocation
fields go missing. I think this might be related to #25?Here is some example code:
Executing this with Python 3.10.6 yields:
As you can see, the mentioned attributes are gone. When going ahead and passing this to
ScicatClient.upload_raw_dataset()
, this causes the following error:The text was updated successfully, but these errors were encountered: