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

Unknown source in bundle #96

Closed
ThibaultNocchi opened this issue Jul 8, 2020 · 0 comments
Closed

Unknown source in bundle #96

ThibaultNocchi opened this issue Jul 8, 2020 · 0 comments

Comments

@ThibaultNocchi
Copy link

ThibaultNocchi commented Jul 8, 2020

Hello everyone,

I'm trying floweaver for the first time and encountering problems when making my first graph.
Here is the data:

Capture

I'm simply trying at first to display a single flow from "rev1" to "rev2" with this code:

import floweaver

nodes = {
    'start': floweaver.ProcessGroup(['rev1']),
    'end': floweaver.ProcessGroup(['rev2'])
},

ordering = [
    ['start'],
    ['end']
]

bundles = [
    floweaver.Bundle('start', 'end')
]

sdd = floweaver.SankeyDefinition(nodes, bundles, ordering)
floweaver.weave(sdd, global_df)

But when initializing SankeyDefinition, I get a ValueError exception: "Unknown source "start" in bundle 0"

What am I doing wrong?

Thanks in advance

EDIT: I am using floweaver 2.0.0a6 from Pypi.
EDI2: Well I'm a stupid twat. I put a comma after my "nodes" declaration. Have a nice day haha.

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

1 participant