| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
See commments for details concerning name (prevent moto errors by test sequence) and configuration (set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_BUCKET).
|
Coverage increased (+0.1%) to 91.017% when pulling d7f1a7e on ixcat:s3-nu into 55bfc61 on datajoint:master. |
Sorry, something went wrong.
There was a problem hiding this comment.
Will you please merge master?
Sorry, something went wrong.
|
Coverage decreased (-0.07%) to 90.766% when pulling 72bd9b8 on ixcat:s3-nu into c815421 on datajoint:master. |
Sorry, something went wrong.
|
|
||
| def safe_write(filename, blob): | ||
| """ | ||
| A two-step write. |
There was a problem hiding this comment.
Please remove this safe_write. It's implemented below.
Sorry, something went wrong.
| except FileNotFoundError: | ||
| raise DataJointError('Lost external blob') | ||
| elif protocol == 's3': | ||
| blob = s3.get(self.database, store, blob, hash) |
There was a problem hiding this comment.
Bug: hash should be blob_hash
Sorry, something went wrong.
|
Coverage increased (+0.08%) to 90.917% when pulling da87545 on ixcat:s3-nu into c815421 on datajoint:master. |
Sorry, something went wrong.
|
Coverage increased (+0.08%) to 90.917% when pulling da87545 on ixcat:s3-nu into c815421 on datajoint:master. |
Sorry, something went wrong.
| except FileNotFoundError: | ||
| raise DataJointError('Lost external blob') | ||
| elif protocol == 's3': | ||
| blob = s3.get(self.database, store, blob, blob_hash) |
There was a problem hiding this comment.
bug. s3.get does not take a blob as an input.
Sorry, something went wrong.
|
Coverage increased (+0.08%) to 90.917% when pulling d5d1dd6 on ixcat:s3-nu into c815421 on datajoint:master. |
Sorry, something went wrong.
|
Coverage increased (+0.08%) to 90.917% when pulling d1ae669 on ixcat:s3-nu into c815421 on datajoint:master. |
Sorry, something went wrong.
| def make_rpath_name(location, database, blob_hash): | ||
| rpath = '{l}/{d}/{h}'.format(l=location, d=database, h=blob_hash) | ||
| # s3 is '' rooted; prevent useless '/' top-level 'directory' | ||
| return rpath[1:] if rpath[0] == '/' else rpath |
There was a problem hiding this comment.
return rpath.lstrip('/')
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
simplified based update of S3 / #404 based on feedback from dimitri.
includes the 'central' cache work cherry-picked from his branch.
fix #204