Skip to content

Observation speed up - #34

Merged
jherf merged 6 commits into
mainfrom
observation-speed-up
Jul 30, 2026
Merged

jherf merged 6 commits into
mainfrom
observation-speed-up

Conversation

@jherf

@jherf jherf commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Several things:

  1. Program calculates etendue's for each chord for each radDist if they user requests radiance or brightness for their units. This takes ~1 second per chord and is a significant time sink when the user creates many radDists. Solution: Add the pre-calculated ETENDUE values to the bolometer configuration file.

  2. Fixed a bug regarding the assignment and calling of the helical field lines. Now each instance calls the same function (Util.fieldline_key).

  3. Updated DIII-D's bolometer configuration files to include pre-calculated ETENDUE's.

  4. Added a phase_timer function within Util. Use that to measure the timing of things. Call example:
    with phase_timer("calc_radiated_power"):
    self.calc_radiated_power()

  5. make_radDist now creates a master arglist which is then fed to the ProcessingPool. Previously, the program would loop over several parameters, creating a small number of items to run in parallel.

  6. Removed the functionality to call multiple processors when observing in cherab. This lead to over-prescribing processors since make_radDists.py already calls many processors to work. NOTE: Each channel takes on the order of 0.3 seconds to run for 1000 pixelSamples. This is already pretty fast, but can be sped up if the pixelSamples number is reduced or we could map the radiation function to a grid.

  7. Updated the example radDist configuration file since the number of processors when observing with cherab was removed.

@jherf
jherf merged commit 2a69407 into main Jul 30, 2026
2 checks passed
@jherf
jherf deleted the observation-speed-up branch July 30, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant