datajoint / datajoint-matlab

Relational data pipelines for the science lab
MIT License
42 stars 38 forks source link

error with fetchn DataJoint version 3.4.2 #364

Closed arsenyf closed 3 years ago

arsenyf commented 3 years ago

In some cases, for instance in a table that has a numeric field 'trial', fetchn gives an error: fetchn(rrr,'trial') No appropriate method, property, or field 'tableHeader' for class 'dj.internal.GeneralRelvar'.

I fixed it in the code by changing dj.internal.GeneralRelvar (line 293)

if self.tableHeader.attributes(sel).isNumeric to if self.header.attributes(sel).isNumeric

In other queries fetchn worked fine

guzman-raphael commented 3 years ago

@arsenyf Thank you for the report and for debugging this! This has been determined to be a simple typo. Will open a PR with this fix and others soon. Also, closing this issue since it is a duplicate of #361.