Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaggedScalar instead of Schema when using make_component #246

Closed
lucadellalib opened this issue Feb 16, 2020 · 1 comment
Closed

TaggedScalar instead of Schema when using make_component #246

lucadellalib opened this issue Feb 16, 2020 · 1 comment
Assignees

Comments

@lucadellalib
Copy link

Hi,

if I try to load a Component registered through make_component, I obtain a TaggedScalar instead of a Schema instance. For example:

test.yaml:

!ray.HyperBandScheduler

test.py:

schema = yaml.load(open("test.yaml"))
print(schema)
# Output: <ruamel.yaml.comments.TaggedScalar at 0x7fe8db40b310>
# Expected output: flambe.compile.component.Schema(...)

How can I obtain a Schema instance?

@lucadellalib
Copy link
Author

Solved, I was calling make_component with wrong arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants