Skip to content

Bug: make_kwargs does not work for generator make #1350

@arashsm79

Description

@arashsm79

Bug Report

Description

If the make function is a generator, it calls the make function of the AutoPopulate class itself, which does not take make_kwargs as an argument. This results in the following error if one passes make_kwargs to their table that uses generators for make (make_fetch, make_compute, make_insert):

TypeError: AutoPopulate.make() got an unexpected keyword argument 'name_of_the_kw_arg'

Reproducibility

  • DataJoint Version: 0.14.6
  • Steps:
    • Create a table that uses make generators with make_fetch, make_compute, and make_insert
    • Try passing in make_kwargs to the populate function of that table.

Expected Behavior

make_kwargs should be passed down to make_fetch.

I can make a PR for this bug if it is not intended behavior.

Metadata

Metadata

Labels

bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions