-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
a0518e0
commit 3ae5d25
Showing
10 changed files
with
369 additions
and
10 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Python: module gv_ui.DisplayUI</title> | ||
</head><body> | ||
|
||
<table class="heading"> | ||
<tr class="heading-text decor"> | ||
<td class="title"> <br><strong class="title"><a href="gv_ui.html" class="white">gv_ui</a>.DisplayUI</strong></td> | ||
<td class="extra"><a href=".">index</a><br><a href="../../GoVizzy/gv_ui/gv_ui/DisplayUI.py">gv_ui/gv_ui/DisplayUI.py</a></td></tr></table> | ||
<p><span class="code">This module provides functionality to display output widgets for GoVizzy.</span></p> | ||
<p> | ||
<table class="section"> | ||
<tr class="decor pkg-content-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Modules</strong></td></tr> | ||
|
||
<tr><td class="decor pkg-content-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><table><tr><td class="multicolumn"><a href="gv_ui.gvWidgets.html">gv_ui.gvWidgets</a><br> | ||
ipyvolume<br> | ||
</td><td class="multicolumn"><a href="gv_ui.meshes.html">gv_ui.meshes</a><br> | ||
<a href="gv_ui.plotting.html">gv_ui.plotting</a><br> | ||
</td><td class="multicolumn">matplotlib.pyplot<br> | ||
ipywidgets<br> | ||
</td><td class="multicolumn"></td></tr></table></td></tr></table><p> | ||
<table class="section"> | ||
<tr class="decor functions-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Functions</strong></td></tr> | ||
|
||
<tr><td class="decor functions-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><dl><dt><a name="-clear_all_outputs"><strong>clear_all_outputs</strong></a>()</dt><dd><span class="code">Clears the output of the GoVizzy widgets and sets their visibilities to <br> | ||
hidden.</span></dd></dl> | ||
<dl><dt><a name="-display_app"><strong>display_app</strong></a>()</dt><dd><span class="code">Displays the ipvolume.Figure and sets the sidebar options.</span></dd></dl> | ||
<dl><dt><a name="-display_cube"><strong>display_cube</strong></a>(cube)</dt><dd><span class="code">Displays the cube plot based on the value of the dropdown.</span></dd></dl> | ||
<dl><dt><a name="-handle_dropdown_change"><strong>handle_dropdown_change</strong></a>(change, cube)</dt><dd><span class="code">Sets the selected option to the value of the dropdown.</span></dd></dl> | ||
<dl><dt><a name="-show_menu"><strong>show_menu</strong></a>()</dt><dd><span class="code">Displays logo and hides the app output.</span></dd></dl> | ||
<dl><dt><a name="-show_ui"><strong>show_ui</strong></a>()</dt><dd><span class="code">Sets the visibility of the GoVizzy output widgets to visible.</span></dd></dl> | ||
</td></tr></table><p> | ||
<table class="section"> | ||
<tr class="decor data-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Data</strong></td></tr> | ||
|
||
<tr><td class="decor data-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><strong>atom_meshes</strong> = []<br> | ||
<strong>bond_color_picker</strong> = ColorPicker(value='black', description='Bond Color')<br> | ||
<strong>bond_scale_slider</strong> = BoundedFloatText(value=3.0, description='Bond Scale', max=10.0, step=0.01)<br> | ||
<strong>bond_visibility_toggle</strong> = Checkbox(value=True, description='Bond Visibility')<br> | ||
<strong>dropdown</strong> = Dropdown(layout=Layout(margin='5px 0 0 5px'), op...Options', 'Mesh Options'), value='Slice Options')<br> | ||
<strong>exit_button</strong> = Button(button_style='danger', description='[X]',...Layout(margin='0 0 0 auto'), style=ButtonStyle())<br> | ||
<strong>in_app_exit</strong> = Button(button_style='danger', description='[X]', style=ButtonStyle())<br> | ||
<strong>large_box</strong> = Output(layout=Layout(height='100%', width='70%'))<br> | ||
<strong>newCube_button</strong> = Button(description='New Cube', layout=Layout(bor...1px solid black', flex='1'), style=ButtonStyle())<br> | ||
<strong>options</strong> = ['Slice Options', 'Mesh Options']<br> | ||
<strong>save_button</strong> = Button(description='Save', layout=Layout(border_...1px solid black', flex='1'), style=ButtonStyle())<br> | ||
<strong>selected_option</strong> = 'Slice Options'<br> | ||
<strong>selected_view_options</strong> = Output(layout=Layout(height='300px', width='auto'))<br> | ||
<strong>slice_picker</strong> = Output(layout=Layout(border_bottom='1px solid bl... black', border_top='1px solid black', flex='1'))<br> | ||
<strong>slice_picker_descr</strong> = Label(value='Slice Picker', layout=Layout(margin='5px 0 0 5px'))</td></tr></table> | ||
</body></html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Python: module gv_ui.fileInput</title> | ||
</head><body> | ||
|
||
<table class="heading"> | ||
<tr class="heading-text decor"> | ||
<td class="title"> <br><strong class="title"><a href="gv_ui.html" class="white">gv_ui</a>.fileInput</strong></td> | ||
<td class="extra"><a href=".">index</a><br><a href="../../GoVizzy/gv_ui/gv_ui/fileInput.py">gv_ui/gv_ui/fileInput.py</a></td></tr></table> | ||
<p></p> | ||
<p> | ||
<table class="section"> | ||
<tr class="decor pkg-content-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Modules</strong></td></tr> | ||
|
||
<tr><td class="decor pkg-content-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><table><tr><td class="multicolumn">cube_viskit<br> | ||
numpy<br> | ||
</td><td class="multicolumn">os<br> | ||
matplotlib.pyplot<br> | ||
</td><td class="multicolumn">shutil<br> | ||
</td><td class="multicolumn"></td></tr></table></td></tr></table><p> | ||
<table class="section"> | ||
<tr class="decor functions-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Functions</strong></td></tr> | ||
|
||
<tr><td class="decor functions-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><dl><dt><a name="-copy_file"><strong>copy_file</strong></a>(source_path, destination_path)</dt><dd><span class="code">Given the source path and destination path, it copies the file from the<br> | ||
source path to the destination path. Returns True if the copy is successful<br> | ||
otherwise False.</span></dd></dl> | ||
<dl><dt><a name="-find_source_path"><strong>find_source_path</strong></a>(fileName, directory)</dt><dd><span class="code">Given a filename and a directory, it traverses down the directory to find<br> | ||
a matching file. If the file exists it returns the file path, otherwise it<br> | ||
returns None.</span></dd></dl> | ||
<dl><dt><a name="-generate_unique_filename"><strong>generate_unique_filename</strong></a>(fileName, directory)</dt><dd><span class="code">Given a path to a file, it creates a new file at the provided directory<br> | ||
with a unique number appended to the end.</span></dd></dl> | ||
</td></tr></table> | ||
</body></html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Python: module gv_ui.gvWidgets</title> | ||
</head><body> | ||
|
||
<table class="heading"> | ||
<tr class="heading-text decor"> | ||
<td class="title"> <br><strong class="title"><a href="gv_ui.html" class="white">gv_ui</a>.gvWidgets</strong></td> | ||
<td class="extra"><a href=".">index</a><br><a href="../../GoVizzy/gv_ui/gv_ui/gvWidgets.py">gv_ui/gv_ui/gvWidgets.py</a></td></tr></table> | ||
<p><span class="code">This File is for widgets used by GoVizzy<br> | ||
Input form: widget for uploading a .cube file<br> | ||
Documentation for widget library: <a href="https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#file-upload">https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#file-upload</a></span></p> | ||
<p> | ||
<table class="section"> | ||
<tr class="decor pkg-content-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Modules</strong></td></tr> | ||
|
||
<tr><td class="decor pkg-content-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><table><tr><td class="multicolumn">numpy<br> | ||
</td><td class="multicolumn"></td><td class="multicolumn"></td><td class="multicolumn"></td></tr></table></td></tr></table><p> | ||
<table class="section"> | ||
<tr class="decor functions-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Functions</strong></td></tr> | ||
|
||
<tr><td class="decor functions-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><dl><dt><a name="-atom_color_picker"><strong>atom_color_picker</strong></a>(atom: ipyvolume.widgets.Mesh, description: str = 'Color')</dt><dd><span class="code">Returns an ipywidget.ColorPicker with the provided description and links the<br> | ||
value to the provided mesh color.</span></dd></dl> | ||
<dl><dt><a name="-atom_scale_slider"><strong>atom_scale_slider</strong></a>(atom: ipyvolume.widgets.Mesh, description: str = 'Scale')</dt><dd><span class="code">Returns an ipywidget.BoundedFloatText with the provided description and<br> | ||
links the value to a function which adjusts the scale of the atom.</span></dd></dl> | ||
<dl><dt><a name="-mesh_visibility_toggle"><strong>mesh_visibility_toggle</strong></a>(mesh: ipyvolume.widgets.Mesh, description: str = 'Atom')</dt><dd><span class="code">Returns an ipywidget.Checkbox with the provided description and links the<br> | ||
value to the provided mesh visibility.</span></dd></dl> | ||
<dl><dt><a name="-scale_atom_mesh"><strong>scale_atom_mesh</strong></a>(atom: ipyvolume.widgets.Mesh, points: tuple[list, list, list], origin: tuple[float, float, float], scale: float)</dt><dd><span class="code">Scales the size of the original atom size by the scaling factor. Sets the<br> | ||
scaled values to the provided atom.</span></dd></dl> | ||
</td></tr></table><p> | ||
<table class="section"> | ||
<tr class="decor data-decor heading-text"> | ||
<td class="section-title" colspan=3> <br><strong class="bigsection">Data</strong></td></tr> | ||
|
||
<tr><td class="decor data-decor"><span class="code"> </span></td><td> </td> | ||
<td class="singlecolumn"><strong>bond_color_picker</strong> = ColorPicker(value='black', description='Bond Color')<br> | ||
<strong>bond_scale_slider</strong> = BoundedFloatText(value=3.0, description='Bond Scale', max=10.0, step=0.01)<br> | ||
<strong>bond_visibility_toggle</strong> = Checkbox(value=True, description='Bond Visibility')<br> | ||
<strong>color</strong> = ColorPicker(value='white', concise=True, descrip...lor', layout=Layout(flex='1 1 0%', width='auto'))<br> | ||
<strong>form</strong> = Box(children=(Box(children=(Label(value='Path to...', display='flex', flex_flow='row', width='50%'))<br> | ||
<strong>form_item_layout</strong> = Layout(display='flex', flex_flow='row', justify_content='space-between')<br> | ||
<strong>form_items</strong> = [Box(children=(Label(value='Path to .cube file'),...lex_flow='row', justify_content='space-between')), ColorPicker(value='white', concise=True, descrip...lor', layout=Layout(flex='1 1 0%', width='auto')), Button(description='Submit', layout=Layout(flex='1 1 0%', width='auto'), style=ButtonStyle()), FloatSlider(value=0.0, description='X Pos', max=120.0, readout_format='.1f')]<br> | ||
<strong>slice_x_check</strong> = Checkbox(value=False, description='X Toggle')<br> | ||
<strong>slice_x_slider</strong> = FloatSlider(value=0.0, description='X Pos', max=120.0, readout_format='.1f')<br> | ||
<strong>slice_y_check</strong> = Checkbox(value=False, description='Y Toggle')<br> | ||
<strong>slice_y_slider</strong> = FloatSlider(value=0.0, description='Y Pos', max=120.0, readout_format='.1f')<br> | ||
<strong>slice_z_check</strong> = Checkbox(value=False, description='Z Toggle')<br> | ||
<strong>slice_z_slider</strong> = FloatSlider(value=0.0, description='Z Pos', max=120.0, readout_format='.1f')</td></tr></table> | ||
</body></html> |
Oops, something went wrong.