acconeer / acconeer-python-exploration

Acconeer Exploration Tool
https://docs.acconeer.com
Other
177 stars 63 forks source link

Missing breathing examples #115

Closed kmtm closed 2 years ago

kmtm commented 2 years ago

Describe the bug The latest version of the repo is missing the 'processing' folder that has breathing.py and sleep_breathing.py examples. Downloading a a prior commit version that does have these files and running them produces the following error:

AttributeError: module 'acconeer.exptool.utils' has no attribute 'ExampleArgumentParser'

Are there updated version of these examples coming soon? I need a bit of help understanding how to get the sleep breathing algorithm (https://docs.acconeer.com/en/latest/exploration_tool/algo/a111/sleep_breathing.html) up and running to test out.

To reproduce Steps to reproduce the behavior:

  1. Download this commit: https://github.com/acconeer/acconeer-python-exploration/blob/73d06aa5175a205747a0a84999a94401a223e90a/examples/processing/breathing.py#L228
  2. run breathing.py or sleep_breathing.py

Environment (please complete the following information):

AndersBuhl commented 2 years ago

Hi,

The example processing have been moved. The two you are referring to are now moved to: src/acconeer/exptool/a111/algo/breathing and src/acconeer/exptool/a111/algo/sleep_breathing. These folders each contain a _processor.py which includes all code used for processing.

The examples can be run by: 'python -m acconeer.exptool.a111.algo.breathing' and 'python -m acconeer.exptool.a111.algo.sleep_breathing'

BR, Anders

kmtm commented 2 years ago

Many thanks! I'm now dealing with the PySide6 requirement and the fact that Raspi only seems to support PySide5 at the moment. Any suggestions there? (Or a way to apply the breathing algos with matplotlib instead)

kmtm commented 2 years ago

[UPDATE] In case anyone is working with a Raspi 4, I was able to get this to work by using the v3 version of the acconeer tool (following the directions for manually building, though there were a few pip errors on versions I ignored) with PyQT5 installed. Make sure to pip uninstall the latest acconeer if you had tried that first, though, otherwise it will be angry :)

AndersBuhl commented 2 years ago

Hi,

The issue with PySide6 on Raspberry have been discussed earlier: Exploration Tool on Raspberry Pi with PySide 6 #112

BR, Anders

kmtm commented 2 years ago

Yeah, I looked into that. It seems like you can't get the UI in the latest exp tool version like you can in v3.

AndersBuhl commented 2 years ago

That is correct. It has never been officially supported and there have been some issues to get the GUI running on a Raspberry PI, but it have been doable before.