[PIPE2D-129] Move code in SpectraTemplates.hpp to Spectra.cc. Same for PSF Created: 23/Nov/16  Updated: 23/Jul/17  Resolved: 23/Jul/17

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

Type: Story Priority: Major
Reporter: aritter Assignee: aritter
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 3

 Description   

Please move the templates which are now in `SpectraTemplates.hpp` to `Spectra.cc`.
I originally moved them the templates to `SpectraTemplates.hpp` as I couldn't get them running when they were in `Spectra.cc`, even with the template specializations. Unfortunately I can't find anymore which errors I got, but when I googled it I found that the errors could be avoided if the templates were moved into the header, which worked. Currently `SpectraTemplates.hpp` is included in `Spectra.h` at the end of the file.



 Comments   
Comment by rhl [ 23/Nov/16 ]

Moving them to the header will work, but it's a bad solution as the functions need to be instantiated every time that they are used.

If you can't understand the error messages with the explicit instantiations please ask for help.

Comment by rhl [ 23/Jul/17 ]

No real need to review this one, just moving code from one place to another.

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