Skip to content

Commit 1bea480

Browse files
committed
Merge pull request #226 from caspervdw/release-0.3.3
FIX Two fixes after release 0.3.3rc1
2 parents 598317c + 71c0fa8 commit 1bea480

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
trackpy/_version.py export-subst
22
pims/_version.py export-subst
3+
*.pkl binary
4+
*.spe binary
5+
*.tif binary
6+
*.mov binary
7+
*.seq binary
8+
*.nd2 binary

pims/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def plot_to_frame(fig, width=512, close_fig=False, fig_size_inches=None,
445445
with _fig_size_cntx(fig, fig_size_inches, tight_layout) as fig:
446446
width_in, height_in = fig.get_size_inches()
447447
dpi = width / width_in
448-
buf_shape = (height_in * dpi, width_in * dpi, 4)
448+
buf_shape = (int(height_in * dpi), int(width_in * dpi), 4)
449449
fig.savefig(buf, format='rgba', dpi=dpi)
450450

451451
buf.seek(0)

pims/tests/test_common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,6 @@ def test_metadata(self):
722722
d = pickle.load(p)
723723
else:
724724
d = pickle.load(p, encoding="latin1")
725-
# unpickling fails on Py3.4, Win7, 64-bit:
726-
# UnpicklingError: the STRING opcode argument must be quoted
727-
728725
#spare4 is actually a byte array
729726
d["spare4"] = d["spare4"].encode("latin1")
730727

0 commit comments

Comments
 (0)