Skip to content

Conversion Node implementation of 'nu' - #31

Merged
tacaswell merged 6 commits into
mainfrom
conversion_node
Jun 8, 2023
Merged

tacaswell merged 6 commits into
mainfrom
conversion_node

Conversation

@ksunden

@ksunden ksunden commented Jun 6, 2023

Copy link
Copy Markdown
Member
  • Initial implementation of conversion node
  • blindly convert 'nus' to 'converters'
  • Get examples working with conversion node infrastructure

Closes #26 (More detailed thoughts)
Supersedes/Closes #17 (the original PR that inspired some of the thoughts)

Comment thread examples/subsample.py Outdated
cmap = mpl.colormaps["coolwarm"]
norm = Normalize(-2.2, 2.2)
im = ImageWrapper(sub, {"image": lambda image: cmap(norm(image))})
im = ImageWrapper(sub)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks broken?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, the ImageWrapper class takes cmap/norm as inputs, such that you do not need to manually do the func colormapping lambda, just neglected to pass those in in this example.

(It worked by some definition of "work", just with viridis so the cmap/norm setup here was not used, updated now it uses those, just with nicer API for the common need of ImageWrapper)

@tacaswell
tacaswell merged commit 1e2ad42 into main Jun 8, 2023
@tacaswell
tacaswell deleted the conversion_node branch June 8, 2023 21:33
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.

Ideas regarding "nu"

2 participants