Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-800

Make ArcLineSet less inefficient

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rhl rhl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: