Skip to content

Comments

Revamp of GUI Menu#14

Merged
MSoares98 merged 7 commits intomainfrom
gui-dev
Apr 26, 2025
Merged

Revamp of GUI Menu#14
MSoares98 merged 7 commits intomainfrom
gui-dev

Conversation

@MSoares98
Copy link
Collaborator

  • Refactored the code to remove redundancies
  • Added new utils.py file for utility functions to improve code cleanliness
  • Implemented a new system for conversion (processing tab)
  • General warning if the "setup" (i.e. B0 and Isotope) is missing
  • New View menu to swap between plot displays (as requested in Add option to GUI to show ppm or hz #13)
  • Minor fix on io.py: format attribute was not changed on conversion

@carlosbornes could you please review the code when you have the time?

Co-authored-by: carlosbornes <carlos.bornes@natur.cuni.cz>
Co-authored-by: danielcunhapereira <cunha.daniel@ua.pt>
@MSoares98 MSoares98 added the enhancement New feature or request label Apr 25, 2025
@MSoares98 MSoares98 requested a review from carlosbornes April 25, 2025 18:48
@MSoares98 MSoares98 changed the title Revamp of GUI Menu as requested in #13 Revamp of GUI Menu Apr 25, 2025
It was impossible to get convert directly from a `spe` in Hz to ppm, without first going to `fid`.

Also added some shortcuts, especially for @danielcunhapereira
if file_data.format == 'fid':
new_data = file_data.to_spe()
else:
new_data = file_data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this one can not go directly from hz to ppm. Now it should work fine. Tested it on the data from the repo

@carlosbornes
Copy link
Collaborator

It should work now. Only found one minor mistake and fixed. Also added Ctrl+o for opening and Ctrl+s for saving. For me feel free to merge.

@MSoares98 MSoares98 merged commit ff63d1a into main Apr 26, 2025
1 check failed
@MSoares98 MSoares98 deleted the gui-dev branch April 26, 2025 17:40
carlosbornes added a commit that referenced this pull request Apr 26, 2025
Revamp of GUI Menu and some extras

Co-authored-by: Daniel Pereira <cunha.daniel@ua.pt>
Co-authored-by: Carlos Bornes <carlos.bornes@natur.cuni.cz>
Co-authored-by: Marcio Soares <marciosoares@ua.pt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants