Git Product home page Git Product logo

pymoda's People

Contributors

beniulis avatar pavleb avatar pboskoski avatar spmccormack avatar thegreatcabbage 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

pymoda's Issues

Save results to data file

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.

Loading datafile with drag and drop raises extension error

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.

Drag and Drop not working in Debian

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

Not loading any data file after loading file with wrong extension

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'

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.