luphysics / pymoda Goto Github PK
View Code? Open in Web Editor NEWPython implementation of MODA, a numerical toolbox developed by the Nonlinear & Biomedical Physics group at Lancaster University.
License: GNU General Public License v3.0
Python implementation of MODA, a numerical toolbox developed by the Nonlinear & Biomedical Physics group at Lancaster University.
License: GNU General Public License v3.0
As suggested by @maximelucas, PyMODA should be able to save its results to a data file so that they can be analysed in standalone scripts.
PyMODA should be able to save data to .mat
, .npy
and .csv
files. The format will be the same as that of MODA.
When loading a datafile: loading from "Browse" works fine, but when loading by "Drag and Dropping", there is an error popup:
"Cannot parse a file with the extension: .mat"
I think in parsing.py
, an error is raised no matter the extension, see log:
Welcome to PyMODA. Please do not close this terminal window while PyMODA is running.
Opening /home/maxime/Nextcloud/WORK/SCIENCE/special_issue/images/signal_timevar_2.mat
...
Calculation terminated.
Traceback (most recent call last):
File "/home/maxime/Documents/pyMODA/src/gui/Application.py", line 43, in start_time_frequency
self.open_window(TFWindow)
File "/home/maxime/Documents/pyMODA/src/gui/Application.py", line 67, in open_window
window = WindowType(self)
File "/home/maxime/Documents/pyMODA/src/gui/windows/timefrequency/TFWindow.py", line 65, in __init__
self.presenter.init()
File "/home/maxime/Documents/pyMODA/src/gui/windows/common/BaseTFPresenter.py", line 59, in init
self.view.select_file()
File "/home/maxime/Documents/pyMODA/src/gui/windows/common/BaseTFWindow.py", line 56, in select_file
self.presenter.on_file_selected(file_path)
File "/home/maxime/Documents/pyMODA/src/gui/windows/common/BaseTFPresenter.py", line 125, in on_file_selected
self.load_data()
File "/home/maxime/Documents/pyMODA/src/gui/windows/timefrequency/TFPresenter.py", line 188, in load_data
self.signals = Signals.from_file(self.open_file)
File "/home/maxime/Documents/pyMODA/src/maths/signals/Signals.py", line 135, in from_file
parser = get_parser(file)
File "/home/maxime/Documents/pyMODA/src/data/parsing/parsing.py", line 49, in get_parser
raise ParsingException(f"Cannot parse a file with the extension: {extension}")
data.parsing.parsing.ParsingException: Cannot parse a file with the extension: .mat
Once this error occurs, after restaring pyMODA, and lauching the "Time-Frequency" module, the error
addItems(self, Iterable[str]): argument 1 has unexpected type 'str
immediately pops up (and again when trying to load files). Deleting settings.cong
solves that second error.
As suggested by @maximelucas, it would be useful to be able to import and use PyMODA's functionality - for example, the wavelet transform function - in standalone scripts.
To load a file, drag and drop is not working: when dropping, the file is not selected. Nothing happens apart from the background of the drag and drop window blinking in dark grey when dropping.
OS: Debian GNU/Linux bullseye/sid, with GNOME 3.34.2
Python: 3.7.6
After opening pyMODA, go the "Time-Frequency Analasis" module. The module window opens, together with a pop-up error window "addItems(self, Iterable[str]): argument 1 has unexpected type 'str'".
This happened after I tried to load an .npy file as data file, and got an error such as "wrong format file". Now, I cannot use any of MODA's modules, because I always get the above error "unexpected type" which prevents me from loading any valid data file.
I have tried restarting pyMODA, withouth success. Restarting my computer did not work either.
Here is the log from the terminal, when the error occurs:
maxime@maxime-ThinkPad-T450:~$ pymoda
Welcome to PyMODA. Please do not close this terminal window while PyMODA is running.
Calculation terminated.
Traceback (most recent call last):
File "/home/maxime/Documents/pyMODA/src/gui/Application.py", line 43, in start_time_frequency
self.open_window(TFWindow)
File "/home/maxime/Documents/pyMODA/src/gui/Application.py", line 67, in open_window
window = WindowType(self)
File "/home/maxime/Documents/pyMODA/src/gui/windows/timefrequency/TFWindow.py", line 65, in __init__
self.presenter.init()
File "/home/maxime/Documents/pyMODA/src/gui/windows/common/BaseTFPresenter.py", line 59, in init
self.view.select_file()
File "/home/maxime/Documents/pyMODA/src/gui/windows/common/BaseTFWindow.py", line 54, in select_file
file_path = SelectFileDialog().get_result()
File "/home/maxime/Documents/pyMODA/src/gui/dialogs/files/SelectFileDialog.py", line 41, in __init__
super().__init__()
File "/home/maxime/Documents/pyMODA/src/gui/BaseUI.py", line 28, in __init__
self.setup_ui()
File "/home/maxime/Documents/pyMODA/src/gui/dialogs/files/SelectFileDialog.py", line 46, in setup_ui
self.setup_recent_files()
File "/home/maxime/Documents/pyMODA/src/gui/dialogs/files/SelectFileDialog.py", line 95, in setup_recent_files
self.combo_recent.addItems(files)
TypeError: addItems(self, Iterable[str]): argument 1 has unexpected type 'str'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.