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

Handling for qgridnext installation #2819

Merged
merged 3 commits into from
Sep 23, 2024
Merged

Conversation

andrewfullard
Copy link
Contributor

@andrewfullard andrewfullard commented Sep 11, 2024

πŸ“ Description

Type: πŸ“ documentation

Adds a try-except block to catch the ModuleNotFoundError and notify the user via logs. Also adds a note to docs. Output from logs:

image

🚦 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.

Copy link

Check out this pull request onΒ  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@tardis-bot
Copy link
Contributor

tardis-bot commented Sep 11, 2024

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

1	I001	[*] Import block is un-sorted or un-formatted
1	F401	[*] `tardis.visualization.shell_info_from_hdf` imported but unused

Complete output(might be large):

docs/io/visualization/how_to_generating_widgets.ipynb:cell 5:1:1: I001 [*] Import block is un-sorted or un-formatted
docs/io/visualization/how_to_generating_widgets.ipynb:cell 5:3:5: F401 [*] `tardis.visualization.shell_info_from_hdf` imported but unused
Found 2 errors.
[*] 2 fixable with the `--fix` option.

@tardis-bot
Copy link
Contributor

tardis-bot commented Sep 11, 2024

*beep* *bop*

Hi, human.

The docs workflow has succeeded βœ”οΈ

Click here to see your results.

@tardis-bot
Copy link
Contributor

*beep* *bop*
Hi human,
I ran benchmarks as you asked comparing master (260207c) and the latest commit (e1a60c1).
Here are the logs produced by ASV.
Results can also be downloaded as artifacts here.

Significantly changed benchmarks:

All benchmarks:

Benchmarks that have stayed the same:

| Change   | Before [260207cb] <master>   | After [e1a60c12]    | Ratio   | Benchmark (Parameter)                                                                                                               |
|----------|------------------------------|---------------------|---------|-------------------------------------------------------------------------------------------------------------------------------------|
|          | 6.77Β±2ΞΌs                     | 8.21Β±2ΞΌs            | ~1.21   | transport_montecarlo_vpacket.BenchmarkMontecarloMontecarloNumbaVpacket.time_trace_vpacket_volley                                    |
|          | 2.61Β±0.4ms                   | 3.07Β±0.6ms          | ~1.18   | transport_montecarlo_single_packet_loop.BenchmarkTransportMontecarloSinglePacketLoop.time_single_packet_loop                        |
|          | 4.32Β±0.06ms                  | 3.92Β±0ms            | ~0.91   | opacities_opacity_state.BenchmarkOpacitiesOpacityState.time_opacity_state_initialize('macroatom')                                   |
|          | 2.09Β±0.02ms                  | 1.81Β±0.03ms         | ~0.87   | transport_montecarlo_main_loop.BenchmarkTransportMontecarloMontecarloMainLoop.time_montecarlo_main_loop                             |
|          | 2.37Β±2ΞΌs                     | 2.05Β±1ΞΌs            | ~0.86   | transport_montecarlo_estimators_radfield_estimator_calcs.BenchmarkMontecarloMontecarloNumbaPacket.time_update_line_estimators       |
|          | 3.43Β±0.3ΞΌs                   | 2.93Β±0.5ΞΌs          | ~0.86   | transport_montecarlo_vpacket.BenchmarkMontecarloMontecarloNumbaVpacket.time_trace_bad_vpacket                                       |
|          | 7.32Β±1ΞΌs                     | 5.70Β±1ΞΌs            | ~0.78   | transport_montecarlo_vpacket.BenchmarkMontecarloMontecarloNumbaVpacket.time_trace_vpacket                                           |
|          | 1.83Β±0.5ΞΌs                   | 1.32Β±0.4ΞΌs          | ~0.72   | transport_geometry_calculate_distances.BenchmarkTransportGeometryCalculateDistances.time_calculate_distance_line                    |
|          | 34.0Β±10ΞΌs                    | 20.5Β±5ΞΌs            | ~0.60   | transport_montecarlo_packet_trackers.BenchmarkTransportMontecarloPacketTrackers.time_generate_rpacket_last_interaction_tracker_list |
|          | 3.52Β±0.3ΞΌs                   | 3.80Β±0.6ΞΌs          | 1.08    | transport_montecarlo_vpacket.BenchmarkMontecarloMontecarloNumbaVpacket.time_trace_vpacket_within_shell                              |
|          | 541Β±100ns                    | 581Β±100ns           | 1.07    | opacities_opacity.BenchmarkMontecarloMontecarloNumbaOpacities.time_pair_creation_opacity_calculation                                |
|          | 43.2Β±20ΞΌs                    | 45.1Β±30ΞΌs           | 1.04    | transport_montecarlo_interaction.BenchmarkTransportMontecarloInteraction.time_line_emission                                         |
|          | 561Β±100ns                    | 571Β±200ns           | 1.02    | opacities_opacity.BenchmarkMontecarloMontecarloNumbaOpacities.time_photoabsorption_opacity_calculation                              |
|          | 203Β±0.05ns                   | 207Β±0.2ns           | 1.02    | spectrum_formal_integral.BenchmarkTransportMontecarloFormalIntegral.time_intensity_black_body                                       |
|          | 30.5Β±0.01ΞΌs                  | 31.0Β±0.1ΞΌs          | 1.02    | transport_montecarlo_packet_trackers.BenchmarkTransportMontecarloPacketTrackers.time_generate_rpacket_tracker_list                  |
|          | 1.20Β±0ΞΌs                     | 1.21Β±0ΞΌs            | 1.01    | transport_geometry_calculate_distances.BenchmarkTransportGeometryCalculateDistances.time_calculate_distance_boundary                |
|          | 530Β±100ns                    | 532Β±200ns           | 1.00    | opacities_opacity.BenchmarkMontecarloMontecarloNumbaOpacities.time_compton_opacity_calculation                                      |
|          | 39.6Β±0.1s                    | 39.7Β±0s             | 1.00    | run_tardis.BenchmarkRunTardis.time_run_tardis                                                                                       |
|          | 44.7Β±30ΞΌs                    | 44.8Β±30ΞΌs           | 1.00    | transport_montecarlo_interaction.BenchmarkTransportMontecarloInteraction.time_line_scatter                                          |
|          | 736Β±0.4ns                    | 734Β±0.6ns           | 1.00    | transport_montecarlo_interaction.BenchmarkTransportMontecarloInteraction.time_thomson_scatter                                       |
|          | 1.07Β±0.01m                   | 1.06Β±0m             | 0.99    | run_tardis.BenchmarkRunTardis.time_run_tardis_rpacket_tracking                                                                      |
|          | 2.09Β±0m                      | 2.07Β±0m             | 0.99    | spectrum_formal_integral.BenchmarkTransportMontecarloFormalIntegral.time_FormalIntegrator_functions                                 |
|          | 3.19Β±0.03ms                  | 3.05Β±0.03ms         | 0.96    | opacities_opacity_state.BenchmarkOpacitiesOpacityState.time_opacity_state_initialize('scatter')                                     |
|          | 67.0Β±0.2ms                   | 64.6Β±0.06ms         | 0.96    | transport_montecarlo_packet_trackers.BenchmarkTransportMontecarloPacketTrackers.time_rpacket_trackers_to_dataframe                  |

If you want to see the graph of the results, you can check it here

@andrewfullard
Copy link
Contributor Author

Test failures are waiting on #2808 and #2811 to be merged

@andrewfullard andrewfullard merged commit 71aad19 into master Sep 23, 2024
20 of 25 checks passed
CePowers pushed a commit to CePowers/tardis that referenced this pull request Sep 24, 2024
* Adds try-except block for qgridnext and small docs note

* black

* Add forced output to the widget notebook so docs can build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants