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

Add custom transform functions. Would solve #10. #12

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

fredrikw
Copy link
Contributor

@fredrikw fredrikw commented Apr 6, 2021

This is an example implementation of how to solve #10. The demo notebook contains code that use features in RDKit 2021.3 that I commented out since I haven't upgraded yet. Please feel free to uncomment those and rerun the notebook :-)
While implementing I realised that there is a choice to make if one should format or style first. I opted to apply the format after the styling code...

@cbouy cbouy linked an issue Apr 7, 2021 that may be closed by this pull request
@cbouy
Copy link
Owner

cbouy commented Apr 7, 2021

@fredrikw I like your idea of passing a callable, that would bring more flexibility, although I'm not sure the support of format strings is even necessary at that point. It would be easier (and probably clearer) to just support functions.
I'll make the changes and update the demo and readme
Thanks again!

@cbouy cbouy changed the title Added string formatting. Would solve #10. Add custom transform functions. Would solve #10. Apr 7, 2021
@cbouy cbouy merged commit d008989 into cbouy:master Apr 7, 2021
@fredrikw fredrikw deleted the format branch April 8, 2021 06:36
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.

Feature request: allow string formatting for values in subsets
2 participants