Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
support dclab 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 25, 2019
1 parent 439ca81 commit c59dc1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
0.9.7
- docs: minor update
- setup: bump dclab from 0.14.7 to 0.15.0
- setup: bump dclab from 0.14.7 to 0.16.0
0.9.6
- enh: improved support for tdms data (dclab 0.12.0 -> 0.14.7) (e.g. #249)
- enh: write Shape-Out version to exported .fcs and .tsv files (#250)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
],
},
install_requires=["appdirs",
"dclab[all]>=0.15.0",
"dclab[all]>=0.16.0",
"fcswrite>=0.5.0",
"h5py>=2.8.0",
"imageio>=2.3.0,<2.5.0",
Expand Down
22 changes: 9 additions & 13 deletions shapeout/gui/plot_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,27 +292,23 @@ def OnMouseScatter(self):
if action:
# Get the cell and plot it
mm = self.scatter2measure[thisplotselect]
# Update the currently plotted list of events `mm._plot_filter`
# Update the currently plotted list of events
plotdic = mm.config.copy()["plotting"]
mm.get_downsampled_scatter(
_, _, idx = mm.get_downsampled_scatter(
xax=plotdic["axis x"].lower(),
yax=plotdic["axis y"].lower(),
downsample=plotdic["downsampling"]*plotdic["downsample events"],
xscale=plotdic["scale x"],
yscale=plotdic["scale y"]
yscale=plotdic["scale y"],
ret_mask=True,
)
# these are all cells that were plotted
# (not neccessarily *all* cells that were filtered away)
plotfilterid = np.where(mm._plot_filter)[0]
# these are all the filtered cells
filterid = np.where(mm._filter)[0]

# these are all events that were plotted (len(idx) == len(mm))
plotfilterid = np.where(idx)[0]
# this is the plot selection
plot_sel = plotfilterid[thissel]
actual_sel = filterid[plot_sel]

sel = plotfilterid[thissel]

mm_id = self.analysis.measurements.index(mm)
self.frame.ImageArea.ShowEvent(mm_id=mm_id, evt_id=actual_sel)
self.frame.ImageArea.ShowEvent(mm_id=mm_id, evt_id=sel)

if not thisplothover is None:
self._lastplothover = thisplothover
Expand Down

0 comments on commit c59dc1e

Please sign in to comment.