[PIPE2D-800] Make ArcLineSet less inefficient Created: 30/Mar/21  Updated: 25/Feb/22

Status: Open
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Normal
Reporter: rhl Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The properties such as wavelength are a major performance bottleneck. Please add caching or otherwise make this more efficient.

def wavelength(self):
        """Array of reference wavelength, nm (`numpy.ndarray` of `float`)"""
        return np.array([ll.wavelength for ll in self.lines], dtype=float)

Once you know that this how the code was written it's not too bad, but innocent-looking code can be very slow.


Generated at Sat Feb 10 15:58:14 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.