Skip to content

Commit

Permalink
use less memory
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Aug 2, 2024
1 parent c243003 commit f362264
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ and display as a false-color movie.
time_stop=astropy.time.Time("2021-09-23T03:00"),
)

index = {obs.axis_wavelength: slice(75, 150)}
obs = dataclasses.replace(
obs,
inputs=na.TemporalSpectralPositionalVectorArray(
time=obs.inputs.time,
wavelength=obs.inputs.wavelength[index],
position=obs.inputs.position[index],
),
outputs=obs.outputs[index],
)


# Calculate the mean rest wavelength of the
# brightest spectral line
wavelength_center = obs.wavelength_center.ndarray.mean()
Expand Down

0 comments on commit f362264

Please sign in to comment.