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

Remove sdec plotter class from liv plot class. #2929

Draft
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

KasukabeDefenceForce
Copy link
Contributor

📝 Description

Type: 🪲 bugfix | 🚀 feature | ☣️ breaking change | 🚦 testing | 📝 documentation | 🎢 infrastructure

Remove sdec plotter class from the live plotter class

📌 Resources

Examples, notebooks, and links to useful references.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

property access patterns between virtual and real packet modes
@tardis-bot
Copy link
Contributor

tardis-bot commented Jan 8, 2025

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

7	RET505	[ ] Unnecessary `else` after `return` statement
7	E999  	[ ] SyntaxError: Expected ',', found ':'
7	W293  	[*] Blank line contains whitespace
6	G004  	[ ] Logging statement uses f-string
5	E902  	[ ] No such file or directory (os error 2)
3	RET506	[ ] Unnecessary `elif` after `raise` statement
3	W291  	[*] Trailing whitespace
3	F401  	[*] `matplotlib.cm` imported but unused
2	PTH117	[ ] `os.path.isabs()` should be replaced by `Path.is_absolute()`
2	I001  	[*] Import block is un-sorted or un-formatted
2	W292  	[*] No newline at end of file
2	W605  	[*] Invalid escape sequence: `\A`
1	F541  	[*] f-string without any placeholders

Complete output(might be large):

.github/workflows/release.yml:7:4: E999 SyntaxError: Expected an expression
.github/workflows/release.yml:94:1: W293 [*] Blank line contains whitespace
.github/workflows/release.yml:97:1: W293 [*] Blank line contains whitespace
.github/workflows/release.yml:104:1: W293 [*] Blank line contains whitespace
.github/workflows/release.yml:107:1: W293 [*] Blank line contains whitespace
.github/workflows/release.yml:110:1: W293 [*] Blank line contains whitespace
.github/workflows/release.yml:115:1: W293 [*] Blank line contains whitespace
.github/workflows/release.yml:119:1: W293 [*] Blank line contains whitespace
.github/workflows/release.yml:144:23: W292 [*] No newline at end of file
.mailmap:1:38: E999 SyntaxError: Expected an expression
.mailmap:290:39: W292 [*] No newline at end of file
CHANGELOG.md:4:15: E999 SyntaxError: Expected ',', found ':'
CITATION.cff:3:1: E999 SyntaxError: Invalid annotated assignment target
README.rst:1:1: E999 SyntaxError: Expected a statement
docs/io/output/how_to_rpacket_tracking.ipynb:cell 12:1:62: W291 [*] Trailing whitespace
docs/physics/setup/model.ipynb:cell 2:2:1: I001 [*] Import block is un-sorted or un-formatted
docs/physics/setup/model.ipynb:cell 25:19:12: F541 [*] f-string without any placeholders
docs/quickstart.ipynb:cell 12:1:39: W291 [*] Trailing whitespace
docs/quickstart.ipynb:cell 12:5:35: W291 [*] Trailing whitespace
docs/quickstart.ipynb:cell 16:10:26: W605 [*] Invalid escape sequence: `\A`
docs/quickstart.ipynb:cell 16:11:40: W605 [*] Invalid escape sequence: `\A`
docs/resources/credits.rst:1:1: E999 SyntaxError: Expected a statement
docs/workflows/v_inner_solver_workflow.ipynb:1:1: E902 No such file or directory (os error 2)
tardis/io/configuration/config_reader.py:53:29: G004 Logging statement uses f-string
tardis/io/configuration/config_reader.py:117:9: RET505 Unnecessary `else` after `return` statement
tardis/io/configuration/config_reader.py:141:13: RET505 Unnecessary `else` after `return` statement
tardis/io/configuration/config_reader.py:218:29: G004 Logging statement uses f-string
tardis/io/configuration/schemas/montecarlo_definitions.yml:1:13: E999 SyntaxError: Expected an expression
tardis/io/model/parse_geometry_configuration.py:50:12: PTH117 `os.path.isabs()` should be replaced by `Path.is_absolute()`
tardis/io/model/parse_radiation_field_configuration.py:118:13: G004 Logging statement uses f-string
tardis/model/base.py:340:12: PTH117 `os.path.isabs()` should be replaced by `Path.is_absolute()`
tardis/model/base.py:375:21: G004 Logging statement uses f-string
tardis/opacities/tests/__init__.py:1:1: E902 No such file or directory (os error 2)
tardis/radiation_field/validate_radiation_field.py:1:1: E902 No such file or directory (os error 2)
tardis/spectrum/formal_integral.py:1:1: I001 [*] Import block is un-sorted or un-formatted
tardis/spectrum/formal_integral.py:358:13: RET506 Unnecessary `else` after `raise` statement
tardis/spectrum/formal_integral.py:698:5: RET505 Unnecessary `else` after `return` statement
tardis/spectrum/formal_integral.py:734:5: RET505 Unnecessary `else` after `return` statement
tardis/visualization/plot_util.py:53:5: RET505 Unnecessary `else` after `return` statement
tardis/visualization/tools/liv_plot.py:4:25: F401 [*] `matplotlib.cm` imported but unused
tardis/visualization/tools/liv_plot.py:7:18: F401 [*] `pandas` imported but unused
tardis/visualization/tools/liv_plot.py:10:48: F401 [*] `tardis.visualization.tools.sdec_plot` imported but unused
tardis/visualization/tools/liv_plot.py:316:13: RET506 Unnecessary `elif` after `raise` statement
tardis/visualization/tools/sdec_plot.py:202:13: RET506 Unnecessary `else` after `raise` statement
tardis/visualization/tools/visualization_data.py:213:9: RET505 Unnecessary `else` after `return` statement
tardis/visualization/tools/visualization_data.py:345:9: RET505 Unnecessary `else` after `return` statement
tardis/workflows/simple_tardis_workflow.py:230:17: G004 Logging statement uses f-string
tardis/workflows/simple_tardis_workflow.py:449:17: G004 Logging statement uses f-string
tardis/workflows/util.py:1:1: E902 No such file or directory (os error 2)
tardis/workflows/v_inner_solver.py:1:1: E902 No such file or directory (os error 2)
Found 50 errors.
[*] 20 fixable with the `--fix` option.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 75.93985% with 32 lines in your changes missing coverage. Please review.

Project coverage is 69.41%. Comparing base (7e37d5f) to head (bc371f8).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
tardis/visualization/tools/visualization_data.py 69.84% 19 Missing ⚠️
tardis/visualization/plot_util.py 77.77% 10 Missing ⚠️
tardis/visualization/tools/liv_plot.py 88.23% 2 Missing ⚠️
tardis/visualization/tools/sdec_plot.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2929      +/-   ##
==========================================
- Coverage   70.39%   69.41%   -0.98%     
==========================================
  Files         221      225       +4     
  Lines       16147    16344     +197     
==========================================
- Hits        11366    11345      -21     
- Misses       4781     4999     +218     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants