Skip to content

[bug] caller error when interating over cls in factory.py #28

@joydeep049

Description

@joydeep049

Related Discussion: nyunAI/nyuntam-vision#20 (comment)

In the create_from_dict() method in nyuntam/factory.py, the caller iterating over cls always throws an error. But if we do something like:

cls = get_factories(task, job_service)
if(cls[0]):
    return cls[0](args)
else:    
    raise Exception("Factory instance could not be created.")

This can be done because cls only has a single element. Also, it works locally.

cc @Akash-guna @Arnav0400

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