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

updated converged status to self.converged throughout workflow #2963

Merged

Conversation

erinvisser
Copy link
Contributor

📝 Description

Type: 🪲 bugfix

Throughout the workflow notebooks, the converged variable was a temporary variable, so it could not update properly. I went through simple_tardis_workflow.py, standard_tardis_workflow.py, and v_inner_solver.py and changed every 'converged' variable to 'self.converged'.

@DeerWhale

@tardis-bot
Copy link
Contributor

tardis-bot commented Jan 31, 2025

*beep* *bop*
Hi human,
I ran ruff on the latest commit (b6d258e).
Here are the outputs produced.
Results can also be downloaded as artifacts here.
Summarised output:

7	G004 	[ ] Logging statement uses f-string
6	W293 	[*] Blank line contains whitespace
1	TD005	[ ] Missing issue description after `TODO`
1	E999 	[ ] SyntaxError: Simple statements must be separated by newlines or semicolons

Complete output(might be large):

.github/workflows/lfs-cache.yml:1:12: E999 SyntaxError: Simple statements must be separated by newlines or semicolons
.github/workflows/lfs-cache.yml:38:1: W293 [*] Blank line contains whitespace
.github/workflows/lfs-cache.yml:50:1: W293 [*] Blank line contains whitespace
.github/workflows/lfs-cache.yml:58:1: W293 [*] Blank line contains whitespace
.github/workflows/lfs-cache.yml:63:1: W293 [*] Blank line contains whitespace
.github/workflows/lfs-cache.yml:68:1: W293 [*] Blank line contains whitespace
.github/workflows/lfs-cache.yml:72:1: W293 [*] Blank line contains whitespace
tardis/workflows/simple_tardis_workflow.py:230:17: G004 Logging statement uses f-string
tardis/workflows/simple_tardis_workflow.py:451:17: G004 Logging statement uses f-string
tardis/workflows/standard_tardis_workflow.py:172:13: G004 Logging statement uses f-string
tardis/workflows/standard_tardis_workflow.py:212:17: G004 Logging statement uses f-string
tardis/workflows/v_inner_solver.py:16:3: TD005 Missing issue description after `TODO`
tardis/workflows/v_inner_solver.py:180:17: G004 Logging statement uses f-string
tardis/workflows/v_inner_solver.py:207:17: G004 Logging statement uses f-string
tardis/workflows/v_inner_solver.py:315:17: G004 Logging statement uses f-string
Found 15 errors.
[*] 6 fixable with the `--fix` option.

@andrewfullard
Copy link
Contributor

So that tests can run, please push an empty commit with git commit --allow-empty -m "Trigger workflows"

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 69.17%. Comparing base (34c0a4f) to head (b6d258e).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
tardis/workflows/simple_tardis_workflow.py 0.00% 4 Missing ⚠️
tardis/workflows/standard_tardis_workflow.py 0.00% 4 Missing ⚠️
tardis/workflows/v_inner_solver.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2963      +/-   ##
==========================================
- Coverage   69.54%   69.17%   -0.37%     
==========================================
  Files         228      228              
  Lines       16429    16429              
==========================================
- Hits        11425    11365      -60     
- Misses       5004     5064      +60     

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

@DeerWhale DeerWhale merged commit 12b26c5 into tardis-sn:master Feb 3, 2025
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants