Skip to content

Conversation

@PaulJonasJost
Copy link
Collaborator

Introduces the whole Do/Undo schema. Additionally fixes:

  • Error handling of some PEtab errors (including overwrite of checks that should not be an error)
  • Changed ordering of default value filling
  • Better messaging in case of invalid copy/pasting (e.g. duplicate indexes)

# Conflicts:
#	src/petab_gui/controllers/mother_controller.py
#	src/petab_gui/models/pandas_table_model.py
#	src/petab_gui/views/task_bar.py
1. Copy pasting is one big undo/redo
2. Setting an invalid index has a new overwrite message and sets a default value
3. Ordering of functionality is changes such that a row is only checked when necessary
4. In parameter case, now accounts for potentially more parameters than were thrown into the model
@PaulJonasJost PaulJonasJost requested a review from fbergmann April 23, 2025 10:55
@PaulJonasJost PaulJonasJost mentioned this pull request Apr 23, 2025
Copy link
Collaborator

@fbergmann fbergmann left a comment

Choose a reason for hiding this comment

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

works great for me, can you look whether to apply the tiny changes for the order of the menu items.

also when i select a range and just hit the delete key, i would want the entries deleted (assigned NaN). Similarly to how when i select a range of cells and i enter 2, then all of them get the value 2.

@PaulJonasJost
Copy link
Collaborator Author

Will adjust the Multidelete in the PR that also tackles display of multichange 👍🏼

@PaulJonasJost PaulJonasJost requested a review from fbergmann April 24, 2025 09:23
@PaulJonasJost
Copy link
Collaborator Author

Gonna merge it for now, can push other requested changes in another PR 👍🏼

@PaulJonasJost PaulJonasJost merged commit 41c756d into develop Apr 24, 2025
@PaulJonasJost PaulJonasJost deleted the do_undo branch April 24, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants