Skip to content

Incorrect parsing of attribute's type - incorrectly read from the comments #335

@ttngu207

Description

@ttngu207

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions