Skip to content

Commit

Permalink
[skip ci] Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored and github-actions[bot] committed Nov 24, 2022
1 parent 39f2195 commit 57774ee
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions openmc_source_plotter/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,21 @@ def plot_source_direction(

data = self.sample_initial_particles(n_samples, prn_seed)

biggest_coord = max(max([particle.r[0] for particle in data]), max([particle.r[1] for particle in data]), max([particle.r[2] for particle in data]))
smallest_coord = min(min([particle.r[0] for particle in data]), min([particle.r[1] for particle in data]), min([particle.r[2] for particle in data]))
biggest_coord = max(
max([particle.r[0] for particle in data]),
max([particle.r[1] for particle in data]),
max([particle.r[2] for particle in data]),
)
smallest_coord = min(
min([particle.r[0] for particle in data]),
min([particle.r[1] for particle in data]),
min([particle.r[2] for particle in data]),
)

figure.add_trace(
{
"type": 'scatter3d',
"marker":{"color": 'rgba(255,255,255,0)'},
"type": "scatter3d",
"marker": {"color": "rgba(255,255,255,0)"},
"x": [biggest_coord, smallest_coord],
"y": [biggest_coord, smallest_coord],
"z": [biggest_coord, smallest_coord],
Expand Down

0 comments on commit 57774ee

Please sign in to comment.