Skip to content

Deprecation warning for changed definition syntax.  #381

@fabiansinz

Description

@fabiansinz

In the past, the following syntax worked for defining tables:

@schema
class TestScores(dj.Computed):
    definition = """
    # testing the model across datasets
    
    -> BestModel
    test_source -> Source
    ---
    """

Now, this throws an error TypeError: not enough arguments for format string.

The solution is:

@schema
class TestScores(dj.Computed):
    definition = """
    # testing the model across datasets
    
    -> BestModel
    (test_source) -> Source
    ---
    """

It would be nice if this would give a more meaningful error message or a deprecation warning. dj.__version__ == '0.8.1'.

Metadata

Metadata

Labels

enhancementIndicates new improvements

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions