Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch context file for changes saved separately #304

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

takluyver
Copy link
Member

Tested interactively. This also fixes a bug where new columns would occasionally show up without a column heading, by ensuring variables always have a title.

cc @tmichela

@takluyver takluyver added the GUI For GUI-related things label Aug 1, 2024
Comment on lines +118 to +122
try:
column_index = self.damnit_model.find_column(name, by_title=True)
except KeyError:
log.error("Could not find column %r to set visibility", name)
return
Copy link
Member Author

Choose a reason for hiding this comment

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

This catch probably isn't needed any more with the fix in damnit_ctx.py, but I figured it was easier to leave it in.

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 74.39%. Comparing base (f7f96a0) to head (a9e2fcc).

Files Patch % Lines
damnit/gui/main_window.py 78.78% 7 Missing ⚠️
damnit/gui/table.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #304      +/-   ##
==========================================
- Coverage   74.39%   74.39%   -0.01%     
==========================================
  Files          32       32              
  Lines        4858     4897      +39     
==========================================
+ Hits         3614     3643      +29     
- Misses       1244     1254      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@takluyver takluyver changed the title Update variables in GUI after saving context file Watch context file for changes saved separately Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI For GUI-related things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant