Incorrect parsing of `attribute`'s type - incorrectly read from the comments
Closed this issue · 1 comments
ttngu207 commented
using .getSchema()
on an existing table with the following definition:
@schema
class ProbeAdjustment(dj.Manual):
definition = """
-> ProbeInsertion
adjustment_time: datetime
---
-> [nullable] Session
-> reference.Experimenter
estimated_depth_change=null: float # (um) positive: moving more dorsal (shallower), negative: moving more ventral (deeper)
adjustment : varchar(128) # new depth (ideally)
"""
this error occurred:
Error using dj.internal.Declare.matchType (line 417)
UnsupportedType: Attribute type ' moving more dorsal (shallower), negative' is not a valid
type.
ttngu207 commented
Corresponding code-block from MATLAB:
datajoint-matlab/+dj/+internal/Declare.m
Line 158 in 892f736
and from Python: https://github.com/datajoint/datajoint-python/blob/d97fe71f296ed719604c9645ff723dc47da1b06b/datajoint/declare.py#L88