Skip to content

Commit

Permalink
Merge pull request #32 from BAMresearch/main
Browse files Browse the repository at this point in the history
small fixes
  • Loading branch information
nitrosx authored Nov 11, 2022
2 parents 448ef72 + 09cea0e commit 98fa114
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pyscicat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ def datasets_get_many(self, filter_fields: Optional[dict] = None) -> Optional[di
```python
filterField = {"proposalId": ""}
```
If you want to search on partial strings, you can use "like":
```python
filterField = {"proposalId": {"like":"123"}}
```
Parameters
----------
Expand Down
4 changes: 1 addition & 3 deletions pyscicat/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class Dataset(Ownable):
type: DatasetType
validationStatus: Optional[str]
version: Optional[str]
scientificMetadata: Optional[Dict]


class RawDataset(Dataset):
Expand All @@ -144,13 +145,11 @@ class RawDataset(Dataset):

principalInvestigator: Optional[str]
creationLocation: Optional[str]
dataFormat: str
type: DatasetType = DatasetType.raw
dataFormat: Optional[str]
endTime: Optional[str] # datetime
sampleId: Optional[str]
proposalId: Optional[str]
scientificMetadata: Optional[Dict]


class DerivedDataset(Dataset):
Expand All @@ -163,7 +162,6 @@ class DerivedDataset(Dataset):
usedSoftware: List[str]
jobParameters: Optional[dict]
jobLogData: Optional[str]
scientificMetadata: Optional[Dict]
type: DatasetType = DatasetType.derived


Expand Down

0 comments on commit 98fa114

Please sign in to comment.