-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Create a new subpackage for jupyter-widgets and add shell info widgets #1166
Create a new subpackage for jupyter-widgets and add shell info widgets #1166
Conversation
fac7c4c
to
09db61b
Compare
Codecov Report
@@ Coverage Diff @@
## master #1166 +/- ##
==========================================
+ Coverage 77.13% 77.73% +0.59%
==========================================
Files 89 92 +3
Lines 5551 5731 +180
==========================================
+ Hits 4282 4455 +173
- Misses 1269 1276 +7
Continue to review full report at Codecov.
|
72932b9
to
19fad50
Compare
- Notes section wasn't visible - Other parameters section was being rendered incorrectly - External links & inline code blocks were also incorrect
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.
Everything looks good to me.
tardis-sn#1166) * Create a widgets submodule * Creat a class for shell info with functions to extract tables data * Put all shell info widget code in its class * Debugged several logical errors in code due to copying * Import main ShellInfoWidget class in init.py * Removed default simulation argument from ShellInfoWidget class * Created one method for creating 4 different table widgets in init * Separated shell info data into HDF and Simulation child class * Made ShellInfoWidget work with both HDF & simulation object * Imputed NaN count values wih 0 * Fixed settingwithcopy error in Z_count_table * Added widgets notebook to be put in docs and shell info demo gif * Refactored Z to element and atomic_num to respect PEP8 * Added docstrings to multiple functions and classes * Converted 2 interdependent optional args of create_table_widget as 1 dict * Added some docstrings and improved signature of display function * Updated the way of accessing shell info widget from hdf and simulation * Added unit tests for shwll info data * Added tests for ion_count and element_count * Added tests for shell info widget * Added qgrid to tardis env file * Added jupyter-widgets notebook to index * Several fixes to docstrings - Notes section wasn't visible - Other parameters section was being rendered incorrectly - External links & inline code blocks were also incorrect * Fixed typo in widgets notebook * Applied black formatter to cover all pep8 changes
This PR primarily aims to make shell info jupter-widgets accessible via
widgets
subpackage. The code is put together in a class in submodulebase.py
(as of now) along with relevant tests and documentation.Things to do: