Giter VIP home page Giter VIP logo

streampick's People

Contributors

bitdeli-chef avatar claudiodsf avatar miili avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

streampick's Issues

Adapting the code for Python 3

Hi Miili;

I have adapted the code for Python 3.x. However I have encounter an issue when I try to run it:

File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 55, in init
self.setupUI()

File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 67, in setupUI
self._initPlots()

File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 84, in _initPlots
self.canvas = FigureCanvas(self.fig)

File "//anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_qt4agg.py", line 76, in init
FigureCanvasQT.init(self, figure)
File "//anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_qt4.py", line 71, in init
QtWidgets.QWidget.init(self)
TypeError: init() missing 1 required positional argument: 'figure'

Attached is the script. Any ideas where I am missing the positional argument?

Thanks
streamPick.py.zip

picking attempts failed ; managed 1 out of 10

Hi, This downloaded and installed ok for me ; loaded a stream ok without problems ; and I can move back and forth along the trace as well; zoom in and out worked fine too ; filter worked fine ; BUT for some reason I had great difficulty actually creating picks. In about 20 or 30 attempts I managed 2. The attempts just didn't appear.....no idea what I'm doing incorrectly...... but as it stands I can't seem to use StreamPick although I would really like to...

Doesn't work with matplotlib 1.5.1

Hi, I tried to use StreamPick with latest matplotlib (1.5.1) but it doesn't work out of the box.
A quick-and-dirty fix for having the window is this:

diff --git a/streamPick.py b/streamPick.py
index 00057dd..2debdda 100644
--- a/streamPick.py
+++ b/streamPick.py
@@ -206,8 +206,8 @@ class streamPick(QtGui.QMainWindow):
         self.fig.clear()
         self._appFilter(draw=False)
         for _i, tr in enumerate(self._current_st):
-            ax = self.fig.add_subplot(num_plots, 1, _i)
-            ax.plot(tr.data, 'k', antialiased=True, rasterized=True, lod=False)
+            ax = self.fig.add_subplot(num_plots, 1, _i+1)
+            ax.plot(tr.data, 'k', antialiased=True, rasterized=True)#, lod=False)
             ax.axhline(0, color='k', alpha=.05)
             ax.set_xlim([0, tr.data.size])
             ax.text(.02, .925, self._current_st[_i].id,

but I didn't look into why it works...

In any case, even with this fix, I'm not able to pick, since hotkeys (q, w) don't work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.