Skip to content

Commit

Permalink
Add documentation note to readComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Jan 19, 2021
1 parent 9a35beb commit 53cd70a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/image/ExposureFitsReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ class ExposureFitsReader::ArchiveReader {
*
* @throws pex::exceptions::NotFoundError Thrown if the component is
* registered in the file metadata but could not be found.
*
* @note When accessing via %pybind11, components with derived subclasses, such
* as ``TransmissionCurve``, are not properly type converted and thus
* the specialized reader must be used instead of ``readComponent``.
*/
// This method takes a string instead of a strongly typed Key because
// readExtraComponents() gets its keys from the FITS metadata.
Expand Down

0 comments on commit 53cd70a

Please sign in to comment.