Closed surgebiswas closed 7 years ago
Can you post your notebook screen? Thx
never mind, I can reproduce this issue.
@arose oh boy, ColorMakerRegistry
was renamed to ColormakerRegistry
I should add a notebook test for this. (uhm, actually it's intention not to test private (experimental) method)).
sorry, things like that will be caught by the type checker once typescript is used throughout...
Can you confirm ngl expose that now? I change Maker to maker but does not seem to work.
never mind again. Make it work.
What should I do then at this point to make it work? Or should I wait for an update from you? Thanks for the quick responses.
yeah, just wait for me. will try to commit code today.
should be available in 1.0.b7 now. Please try it again. Note that this is private function and subjected to change. Feel free to reopen this issue if you get trouble again. thanks.
Looks like its working now. Great work and again, thanks for the quick responses!
I'm just curious about the _set_color_by_residue
method. Since it begins with an underscore does that mean we should not use this method, or is it something you plan to maintain for the foreseeable future?
hi @jbloom, yeah, it's subjected to change in the future. Please treat it as a sandbox.
Hi @hainm, thanks. One other question: is there a straightforward way to map the residue numbers as they appear into the PDB (and as they function in commands such as add_spacefill
) to the residue indices that are used in _set_color_by_residue
?
is there a straightforward way to map the residue numbers as they appear into the PDB
@jbloom unfortunately, there's not.
@jbloom oh, you can use the private (yeah, not public yet) class _ColorScheme
for basically any custom color.
@hainm: This _ColorScheme
is perfect for my needs, thanks!
I'm trying to color each residue in a structure according to a list of colors. I am trying to replicate the demo in issue #492 . I copied and pasted the code, but the demo structure remains blue.
I've installed nglview using
pip install nglview==1.0.b2
.