-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use refactored weas #47
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
508f8de
use_refactored_weas
superstar54 f9942c8
add python_task and update data.objects
superstar54 f8ed009
add camear and instancedMshPrimitive
superstar54 4303f88
use WidgetWrapper and install weas locally
superstar54 bc9e2cc
add tests on camera, ops
superstar54 3f21133
update doc
superstar54 2a7a0c1
split operator to another PR
superstar54 f11931d
update README
superstar54 ca43fbc
support ipywidget 7.x
superstar54 922ba3a
split data API to another PR
superstar54 31f0da2
update ui-test
superstar54 b529861
convert the positions (NumPy array) into a list (#51)
superstar54 e11b146
Merge branch 'main' into use_refactored_weas
superstar54 d211d70
fix snake style class name
superstar54 053e16b
update camera doc to include two settings:
superstar54 557883c
convert the positions (NumPy array) into a list (#51)
superstar54 68c092e
Merge branch 'main' into use_refactored_weas
superstar54 f69bf9a
Merge branch 'main' into use_refactored_weas
superstar54 d283898
fix camera
superstar54 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just pointing out that the meaning of
avr
is not intuitively clear to meThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's
AtomsViewer
😆 . I am thinking of three names:viewer.avr.model_style=1
viewer.atoms_viewer.model_style=1
viewer.atoms.model_style=1
Which one do you think is better? Or any other names?
BTW, tor the moment, the widget has three top-level attributes:
avr
: AtomsViewer,camera
imp
: InstancedMeshPrimitiveIn the future, we will add
light
ops
: Operators, e.g.,viewer.ops.objects.delete()
scene
, access all objects in the scene.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would vote for the option
viewer.atoms
in that casecamera, scene and light are self-explanatory.
imp
is not - perhapsmesh
?ops
is also not so clear to me (it would usually stand for "operations" as in FLOPS) - will there be other properties besidesobjects
? (if not,objects
could be a top-level attribute)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I need to think about this more; Most names come directly from the JavaScript part. I need to make sure the names are good on both sides.