Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversion Node implementation of 'nu' #31

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

Merged
merged 6 commits into from
Jun 8, 2023
Merged

Conversion Node implementation of 'nu' #31

merged 6 commits into from
Jun 8, 2023

Conversation

ksunden
Copy link
Member

@ksunden ksunden commented Jun 6, 2023

  • 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)

@@ -68,7 +68,7 @@ def query(
sub = Subsample()
cmap = mpl.colormaps["coolwarm"]
norm = Normalize(-2.2, 2.2)
im = ImageWrapper(sub, {"image": lambda image: cmap(norm(image))})
im = ImageWrapper(sub)
Copy link
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
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