Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Getting proper x,y axis values
Post: RE: Getting proper x,y axis values

I got it: ax.imshow(zf, origin='lower', extent=[0,f[:k.size//2][-1], 0 , f[:k.size//2][-1]]) origin was not on the bottem left -_-
pyhill00 General Coding Help 8 1,636 Jul-29-2022, 06:48 PM
    Thread: Getting proper x,y axis values
Post: RE: Getting proper x,y axis values

The goal of imshow is to show the frequencies...not sure what you are trying to get it. It's pretty obvious I want to see where the frequency plots are of an fft.
pyhill00 General Coding Help 8 1,636 Jul-29-2022, 05:57 PM
    Thread: Getting proper x,y axis values
Post: RE: Getting proper x,y axis values

(Jul-29-2022, 05:07 PM)deanhystad Wrote: What do you mean "points"? My original post has points in the second plot.
pyhill00 General Coding Help 8 1,636 Jul-29-2022, 05:11 PM
    Thread: Getting proper x,y axis values
Post: RE: Getting proper x,y axis values

(Jul-29-2022, 04:05 PM)deanhystad Wrote: Why? Normally axis labels indicate range with maybe some subdivisions to give approximate value. If you want the real value you click on the plot. It seems...
pyhill00 General Coding Help 8 1,636 Jul-29-2022, 04:43 PM
    Thread: Getting proper x,y axis values
Post: Getting proper x,y axis values

I am trying to change the values of the axes so that the x and y values (0.3,0.4) and (0.3,1) are shown on the axes for the points. Anyone know how to properly do this? from scipy.fft import fft2, ...
pyhill00 General Coding Help 8 1,636 Jul-29-2022, 03:30 PM
    Thread: What am I doing wrong with this FFT?
Post: RE: What am I doing wrong with this FFT?

(Jul-28-2022, 02:16 PM)Gribouillis Wrote: I'm getting Error:Traceback (most recent call last): File "paillasse/pf/ffprob2.py", line 18, in <module> plt.plot(k, yy) NameError: name 'k' is...
pyhill00 General Coding Help 6 1,489 Jul-28-2022, 02:24 PM
    Thread: What am I doing wrong with this FFT?
Post: RE: What am I doing wrong with this FFT?

(Jul-28-2022, 01:50 PM)Gribouillis Wrote: (Jul-28-2022, 09:57 AM)pyhill00 Wrote: Do you know by chance why the FFT amplitudes are the not the same for the four?I think it is the same effect. If yo...
pyhill00 General Coding Help 6 1,489 Jul-28-2022, 02:13 PM
    Thread: What am I doing wrong with this FFT?
Post: RE: What am I doing wrong with this FFT?

(Jul-28-2022, 07:56 AM)Gribouillis Wrote: (Jul-27-2022, 09:50 PM)pyhill00 Wrote: I would have figured, that the FFT would be just 4 spikes but not something like this.It seems to me the FFT of a c...
pyhill00 General Coding Help 6 1,489 Jul-28-2022, 09:57 AM
    Thread: What am I doing wrong with this FFT?
Post: What am I doing wrong with this FFT?

Hi everyone, I am trying to just FFT four cosines but the results are weird. This code below gives the following figures: https://imgur.com/a/FP3ylak import numpy as np import scipy.fftpack from ...
pyhill00 General Coding Help 6 1,489 Jul-27-2022, 09:50 PM
    Thread: Using .hdf5 files only once they are finished writing
Post: RE: Using .hdf5 files only once they are finished ...

I fixed the issue by using Daemon threading: worker = watchdog_search.Worker("/home/test_image_analyzer_files/Test_Data/") worker.new_file.connect(self.on_finished_run) thread = threading...
pyhill00 General Coding Help 7 2,788 Nov-25-2021, 06:01 PM
    Thread: Using .hdf5 files only once they are finished writing
Post: RE: Using .hdf5 files only once they are finished ...

I found where the problem is: thread.started.connect(worker.work)doesn't work after I run the program numerous times after another (i.e.: run the program then close the program then run the program a...
pyhill00 General Coding Help 7 2,788 Nov-21-2021, 09:18 PM
    Thread: Using .hdf5 files only once they are finished writing
Post: RE: Using .hdf5 files only once they are finished ...

Is it possible, that I need to close the thread after closing the program? I noticed after about five times of using the program the watchdog file doesn't even get called anymore and I am left at: tr...
pyhill00 General Coding Help 7 2,788 Nov-21-2021, 09:31 AM
    Thread: Using .hdf5 files only once they are finished writing
Post: RE: Using .hdf5 files only once they are finished ...

(Nov-03-2021, 07:40 AM)pyhill00 Wrote: I solved the problem with the following if statement: while True: event = self._q.get() max_retry_count = 350 # for test purp...
pyhill00 General Coding Help 7 2,788 Nov-03-2021, 07:40 AM
    Thread: Using .hdf5 files only once they are finished writing
Post: RE: Using .hdf5 files only once they are finished ...

I solved the problem with the following code if statement: while True: event = self._q.get() max_retry_count = 350 # for test purposes now but want to set an upper bo...
pyhill00 General Coding Help 7 2,788 Nov-03-2021, 07:40 AM
    Thread: Using .hdf5 files only once they are finished writing
Post: RE: Using .hdf5 files only once they are finished ...

Thank you for the tip. That helped and now it somewhat works. Now the problem is when one file is emitted i.e. goes to the else part, afterward the code gets stuck in OSError loop and goes through the...
pyhill00 General Coding Help 7 2,788 Nov-03-2021, 07:13 AM
    Thread: Using .hdf5 files only once they are finished writing
Post: Using .hdf5 files only once they are finished writ...

I am trying to use .hdf5 files once they are done writing (in my case, trying to emit them). But the problem is that I don't have a way to 1) test if they are finished writing and 2) then send them. T...
pyhill00 General Coding Help 7 2,788 Nov-02-2021, 09:42 PM
    Thread: Error when using Watchdog and Qt to keep open a Queue before and after sending first
Post: Error when using Watchdog and Qt to keep open a Qu...

Watchdog is being used to send new .hdf5 files to a different program for use. The problem is that using Queue only allows one file to be sent and watchdog doesn't send anymore files even when new fil...
pyhill00 General Coding Help 0 1,586 Oct-28-2021, 09:10 AM
    Thread: Using Qt to emit a signal (or maybe with QTimer)
Post: Using Qt to emit a signal (or maybe with QTimer)

I am trying to send an .hdf5 file to a method in the main python file in the class here: class DesignerMainWindow(QtGui.QMainWindow, Ui_MainWindow): """Customization for Qt Designer created...
pyhill00 GUI 1 2,141 Oct-06-2021, 01:15 PM
    Thread: Help with understanding a python package
Post: RE: Help with understanding a python package

(Mar-20-2019, 03:22 PM)Larz60+ Wrote: There's a lot of code there, going through and explaining what each module does would take a very long time indeed. Thanks for the links. Yea it would take a lo...
pyhill00 General Coding Help 4 3,026 Mar-20-2019, 06:45 PM
    Thread: Help with understanding a python package
Post: Help with understanding a python package

Hi all, My python level is decent but I am having difficulties trying to understand this python package called pyrpl: https://github.com/lneuhaus/pyrpl/tree/master/pyrpl https://pyrpl.readthedocs.i...
pyhill00 General Coding Help 4 3,026 Mar-20-2019, 01:33 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020