Releases: SciCatProject/pyscicat
Releases · SciCatProject/pyscicat
v0.4.4
What's Changed
- Fix auth error in from_token, from_credentials by @dylanmcreynolds in #51
Full Changelog: v0.4.3...v0.4.4
Fixes for New Backend
What's Changed
- Multiple fixes for new backend by @dylanmcreynolds in #49
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
v0.2.6
v0.2.5
v0.2.4
Release of the code as it is on 2022/11/08
What's Changed
- Easy url by @dylanmcreynolds in #8
- Ess adding in house functionalities by @nitrosx in #10
- remove pre-commit by @dylanmcreynolds in #15
- modify setup.py to remove filename.as_posix causing bug by @abigailalexander in #17
- Upsert dataset by @abigailalexander in #12
- Security: Do not log username and token by @jl-wynen in #21
- Latest ESS functionalities and naming coinvention by @nitrosx in #24
- Update dataset by @abigailalexander in #23
- Add more model fields by @jl-wynen in #25
New Contributors
- @nitrosx made their first contribution in #10
- @abigailalexander made their first contribution in #17
Full Changelog: v0.2.2...v0.2.4
v0.2.3
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
- Easy url by @dylanmcreynolds in #8
- Ess adding in house functionalities by @nitrosx in #10
- remove pre-commit by @dylanmcreynolds in #15
- modify setup.py to remove filename.as_posix causing bug by @abigailalexander in #17
- Upsert dataset by @abigailalexander in #12
- Security: Do not log username and token by @jl-wynen in #21
- Latest ESS functionalities and naming coinvention by @nitrosx in #24
- Update dataset by @abigailalexander in #23
- Add more model fields by @jl-wynen in #25
New Contributors
- @nitrosx made their first contribution in #10
- @abigailalexander made their first contribution in #17
- @jl-wynen made their first contribution in #21
Full Changelog: v0.2.2...v0.2.3
Fix for base url
Fixes base url
Updates to models and flexibility in initialization of client
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
Initial usable code with documentation. Satisfies uses cases for ingesting datasets.