Skip to content

Commit

Permalink
Merge pull request #8 from dylanmcreynolds/easy_url
Browse files Browse the repository at this point in the history
Easy url
  • Loading branch information
dylanmcreynolds authored Jan 31, 2022
2 parents 0b6f6dc + ec57a52 commit b901bac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 106 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/ambv/black
rev: stable
rev: 21.12b0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: flake8
- repo: https://github.com/kynan/nbstripout
rev: 0.3.9
rev: 0.5.0
hooks:
- id: nbstripout
104 changes: 0 additions & 104 deletions CONTRIBUTING.rst

This file was deleted.

11 changes: 11 additions & 0 deletions pyscicat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,17 @@ def get_datasets(self, filter_fields=None) -> List[Dataset]:
return None
return response.json()

# this method is future, needs testing.
# def update_dataset(self, pid, fields: Dict):
# response = self._send_to_scicat(
# f"{self._base_url}/Datasets", dataDict=fields, cmd="patch"
# )
# if not response.ok:
# err = response.json()["error"]
# logger.error(f'{err["name"]}, {err["statusCode"]}: {err["message"]}')
# return None
# return response.json()


def get_file_size(pathobj):
filesize = pathobj.lstat().st_size
Expand Down

0 comments on commit b901bac

Please sign in to comment.