Skip to content

Ensure HighLevelGraph layers always contain Layer instances#6716

Merged
jrbourbeau merged 4 commits intodask:masterfrom
jrbourbeau:hlg-layer-instances
Oct 14, 2020
Merged

Ensure HighLevelGraph layers always contain Layer instances#6716
jrbourbeau merged 4 commits intodask:masterfrom
jrbourbeau:hlg-layer-instances

Conversation

@jrbourbeau
Copy link
Member

Following up on #6707 (review), this PR moves some existing logic into HighLevelGraph.__init__ to ensure that HighLevelGraph.layers is always a mapping from layer names and Layer instances. Additionally, since _fix_hlg_layers_inplace was only being called in one place, I inlined it in HighLevelGraph.__init__ instead of keeping a separate method.

cc @madsbk

  • Tests added / passed
  • Passes black dask / flake8 dask

@jrbourbeau jrbourbeau mentioned this pull request Oct 8, 2020
2 tasks
@jrbourbeau
Copy link
Member Author

I hadn't noticed that @madsbk already took care of this over in #6689 with a better implementation : ) I've updated this PR to just update a test and type annotation. We can merge this after #6689 is in

@jrbourbeau jrbourbeau merged commit 14f6a76 into dask:master Oct 14, 2020
@jrbourbeau jrbourbeau deleted the hlg-layer-instances branch October 14, 2020 02:26
kumarprabhu1988 pushed a commit to kumarprabhu1988/dask that referenced this pull request Oct 29, 2020
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

Successfully merging this pull request may close these issues.

1 participant