natverse / nat.templatebrains

Support for 3D template brains used as targets for image registration
https://natverse.org/nat.templatebrains/
GNU General Public License v3.0
3 stars 0 forks source link

templatebrain constructor does not process origin #45

Closed jefferis closed 4 years ago

jefferis commented 4 years ago

It was attaching the origin function instead of a NULL entry.

> str(templatebrain("IS2"))
List of 11
 $ name       : chr "IS2"
 $ regName    : chr "IS2"
 $ type       : NULL
 $ sex        : NULL
 $ dims       : NULL
 $ voxdims    : NULL
 $ origin     :function (x, ...)  
  ..- attr(*, "srcref")= 'srcref' int [1:8] 401 9 403 1 9 1 6367 6369
  .. ..- attr(*, "srcfile")=Classes 'srcfilealias', 'srcfile' <environment: 0x7fa9a2ca2010> 
 $ BoundingBox: NULL
 $ units      : NULL
 $ description: NULL
 $ doi        : NULL
 - attr(*, "class")= chr "templatebrain"
jefferis commented 4 years ago

Closed by 72354fbb