Skip to content

Releases: SciCatProject/pyscicat

v0.4.4

16 Oct 18:36
8ff172b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.3...v0.4.4

Fixes for New Backend

03 Oct 16:46
67b0556
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.2...v0.4.3

Several issues were discovered in ingesting datasets to the new backend:

  • The new backend provides a more consistent usage of 404 return codes than the old backend did. In the new backend, 404 seems to only be returned when the path to and endpoint is not found. The old backend sometimes returned 404 when requests did not bring back content, and there was some code to deal with that discrepency, which has been removed.
  • There is a breaking API change in this version related to creating OrigDataBlock. The signature has changed, and a new model object has been introduced:

The OLD way to upload an `OrigDataBlock':

 # Datablock with DataFiles
data_file = DataFile(path="/foo/bar", size=42)
data_block = Datablock(
       size=42,
       version=1,
       datasetId=dataset_id,
       dataFileList=[data_file],
        **ownable.dict()
   )
scicat.upload_dataset_origdatablock(data_block)

The NEW way:

 # Datablock with DataFiles
 data_file = DataFile(path="/foo/bar", size=42)
 data_block_dto = CreateDatasetOrigDatablockDto(
       size=42,
       datasetId=dataset_id,
        dataFileList=[data_file],
  )
  scicat.upload_dataset_origdatablock(dataset_id, data_block_dto)

This change was necessary for uploading OrigDataBlock because the new backend introduces the CreateDatasetOrigDatablockDto model object, which has fewer fields then the old backends OrigDatablock model, and validation rejects the old mechanism.

Fix for pydantic 2 optional fields issue

02 Aug 18:30
f321072
Compare
Choose a tag to compare

What's Changed

  • Support newer versions of pydantic by @eilmiv in #46

Full Changelog: v0.4.1...v0.4.2

v0.2.6

05 Feb 19:49
03e0628
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.5...v0.2.6

v0.2.5

11 Nov 15:14
98fa114
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.3...v0.2.5

v0.2.4

08 Nov 13:18
Compare
Choose a tag to compare

Release of the code as it is on 2022/11/08

What's Changed

New Contributors

Full Changelog: v0.2.2...v0.2.4

v0.2.3

10 Aug 16:19
Compare
Choose a tag to compare

Summary

This release contains bug fixes and a few new features:

  • Features ESS ingestion of simulation data, including tutorials.
  • Numerous fixes to models.

API Changes

  • Changes to the models are breaking changes. Please note this when coding against the release.

What's Changed

New Contributors

Full Changelog: v0.2.2...v0.2.3

Fix for base url

28 Jan 23:24
Compare
Choose a tag to compare

Fixes base url

Updates to models and flexibility in initialization of client

28 Jan 23:04
Compare
Choose a tag to compare

What's Changed

  • added input flexibility in ScicatClient. Now can use either token or credentials in ScicatClient initialisation by @toqduj in #4
  • Fixes to the models, added RawDataset and DerivedDataset, and a derived dataset upload mechanism by @toqduj in #5

Full Changelog: v0.2.0...v0.2.1

v0.1.1

05 Jan 00:25
Compare
Choose a tag to compare

Initial usable code with documentation. Satisfies uses cases for ingesting datasets.