[GSoC] Rename MonteCarloTransportState.opacity_state to opacity_state_numba#3412
[GSoC] Rename MonteCarloTransportState.opacity_state to opacity_state_numba#3412Manivenkat3612 wants to merge 2 commits intotardis-sn:masterfrom
Conversation
Closes tardis-sn#3206 Renames the opacity_state attribute in MonteCarloTransportState to opacity_state_numba to clearly distinguish it from the non-numba OpacityState DataFrame version (sim.opacity_state) added in PR tardis-sn#3205.
|
*beep* *bop* Hi, human. I'm the @tardis-bot and couldn't find your records in my database. I think we don't know each other, or you changed your credentials recently. Please add your name and email to In case you need to map an existing alias, follow this example. |
|
*beep* *bop* Hi, human. I'm the @tardis-bot and I noticed that your email is not associated with an ORCID ID in our database. Please add your email and ORCID ID to the If you don't have an ORCID ID yet, you can create one for free at orcid.org. ORCID IDs help ensure you get proper credit for your scientific contributions. The format should be: |
|
*beep* *bop* Details538 [ ] syntax-error
10 G004 [ ] logging-f-string
1 W291 [ ] trailing-whitespace
1 B019 [ ] cached-instance-method
1 F401 [*] unused-import
1 I001 [*] unsorted-imports
1 TRY300 [ ] try-consider-else
Found 553 errors.
[*] 2 fixable with the `--fix` option.
Complete output(might be large): Detailsbenchmarks/transport_montecarlo_main_loop.py:20:5: B019 Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
tardis/simulation/base.py:264:17: G004 Logging statement uses f-string
tardis/simulation/base.py:447:13: G004 Logging statement uses f-string
tardis/simulation/base.py:564:13: G004 Logging statement uses f-string
tardis/simulation/base.py:657:13: G004 Logging statement uses f-string
tardis/simulation/base.py:662:13: G004 Logging statement uses f-string
tardis/simulation/base.py:713:13: TRY300 Consider moving this statement to an `else` block
tardis/simulation/base.py:715:26: G004 Logging statement uses f-string
tardis/transport/montecarlo/base.py:1:1: I001 [*] Import block is un-sorted or un-formatted
tardis/transport/montecarlo/base.py:31:5: F401 [*] `tardis.transport.montecarlo.packets.trackers.tracker_last_interaction.TrackerLastInteraction` imported but unused
tardis/workflows/simple_tardis_workflow.py:269:17: G004 Logging statement uses f-string
tardis/workflows/simple_tardis_workflow.py:525:17: G004 Logging statement uses f-string
tardis/workflows/standard_tardis_workflow.py:170:13: G004 Logging statement uses f-string
tardis/workflows/standard_tardis_workflow.py:210:17: G004 Logging statement uses f-string
Found 14 errors.
[*] 2 fixable with the `--fix` option.
|
|
I have addressed the bot's feedback regarding mailmap, and ORCID. The benchmarks seem to be failing on the master branch as well. Ready for review @andrewfullard @atharva-2001. |
|
Is there anything more to be done in this issue?@andrewfullard |
Closes #3206
📝 Description
Type: 📝
codestyleRenames the
opacity_stateattribute inMonteCarloTransportStatetoopacity_state_numbato clearly distinguish it from the non-numbaOpacityStateDataFrame version (sim.opacity_state) added in PR #3205.Context:
sim.opacity_state(non-numba DataFrame version) to the Simulation class for use with functions likeget_tau_integ()that require DataFrame indexingtransport_state.opacity_statealso existed but stored the numba-compatible versionChanges:
MonteCarloTransportState.__init__:opacity_state→opacity_state_numbaAfter this PR:
sim.opacity_state→ non-numba DataFrame version (forget_tau_integ, formal integral, etc.)transport_state.opacity_state_numba→ numba-compatible version (for Monte Carlo transport)📌 Resources
🚦 Testing
How did you test these changes?
☑️ Checklist