Skip to content

Commit 4a56d42

Browse files
fix bug in LNX-docker-compose.yml
1 parent 61362e7 commit 4a56d42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LNX-docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ services:
3333
"
3434
pip install --user nose nose-cov coveralls .;
3535
pip freeze | grep datajoint;
36-
nosetests -vsw tests --with-coverage --cover-package=datajoint;
3736
coveralls;
37+
nosetests -vsw tests --with-coverage --cover-package=datajoint;
3838
# jupyter notebook;
3939
"
4040
# ports:
@@ -92,4 +92,4 @@ services:
9292
- ./tests/nginx/fullchain.pem:/certs/fullchain.pem
9393
- ./tests/nginx/privkey.pem:/certs/privkey.pem
9494
networks:
95-
main:
95+
main:

datajoint/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def read_int(self):
269269
@staticmethod
270270
def pack_int(v):
271271
n_bytes = v.bit_length() // 8 + 1
272-
assert n_bytes <= 0xFFFF, 'Integers are limited to 65535 bytes'
272+
assert 0 < n_bytes <= 0xFFFF, 'Integers are limited to 65535 bytes'
273273
return b"\x0a" + np.uint16(n_bytes).tobytes() + v.to_bytes(n_bytes, byteorder='little', signed=True)
274274

275275
def read_bool(self):

0 commit comments

Comments
 (0)