Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Running loop at specific frequency
Post: RE: Running loop at specific frequency

Thanks jefsummers I'm giving this a try. I don't quite understand what it's doing in the line: while time.perf_counter() < start + division/30:I'm going to have think about it and see how it gives...
mdsousa General Coding Help 3 5,849 Apr-20-2021, 04:45 PM
    Thread: Running loop at specific frequency
Post: Running loop at specific frequency

Hi I am trying to get my while loop to run at a specific frequency (30Hz) and am having trouble getting it to work. I'm going with 30Hz x 60 seconds should give me a max run of 1800 loops. I am also ...
mdsousa General Coding Help 3 5,849 Apr-19-2021, 05:55 PM
    Thread: Convert String of an int array to a Numpy array of ints
Post: RE: Convert String of an int array to a Numpy arra...

Thanks SheeppOSU, I had tried something like that (if '{}' create a list as that is what I did. I read that lists were serializable out of the box. #sending listImage = testImage.tolist() msgList =...
mdsousa General Coding Help 5 5,579 Apr-08-2021, 08:00 PM
    Thread: Convert String of an int array to a Numpy array of ints
Post: RE: Convert String of an int array to a Numpy arra...

In sending a message (Numpy int array) using RabbitMQ, this is how it is setup and sent testImage = np.random.randint(0, 255, 10*1000) # grey scale images strImage = np.array_str(testImage) message ...
mdsousa General Coding Help 5 5,579 Apr-07-2021, 04:18 PM
    Thread: Convert String of an int array to a Numpy array of ints
Post: RE: Convert String of an int array to a Numpy arra...

I have found that this only works up to some limits. If the array becomes too large, it only handles the first three elements, I've been able to get it to work up to a 1000 element array. It does not...
mdsousa General Coding Help 5 5,579 Apr-06-2021, 07:17 PM
    Thread: Convert String of an int array to a Numpy array of ints
Post: RE: Convert String of an int array to a Numpy arra...

I'm trying this out. In the output from fromstring, I added the following imageStr = str(parts[4]) imageStr = imageStr.replace('[','') imageStr = imageStr.replace(']','') imageArr = np...
mdsousa General Coding Help 5 5,579 Apr-06-2021, 07:13 PM
    Thread: Convert String of an int array to a Numpy array of ints
Post: Convert String of an int array to a Numpy array of...

Hi I am sending a Numpy int array over RabbitMQ and it seem to be receiving correctly. This is the output RabbitMQ's publish that is sent: >py msg_send_test.py Output: [x] Sent '0,1617731222,161...
mdsousa General Coding Help 5 5,579 Apr-06-2021, 06:40 PM

User Panel Messages

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