-
Notifications
You must be signed in to change notification settings - Fork 2
Make the documentation prettier #22
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
Merged
Merged
Changes from all commits
Commits
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,15 +1,132 @@ | ||
| WEAC documentation | ||
| ================== | ||
| WEAC API Documentation | ||
| ====================== | ||
|
|
||
| **WEAC** (Weak Layer Anticrack Nucleation Model) is a Python implementation of closed-form analytical models for the analysis of dry-snow slab avalanche release. | ||
|
|
||
| .. raw:: html | ||
|
|
||
| <p align="center"> | ||
| <a href="https://github.com/2phi/weac/releases" style="display:inline-block; margin-right:4px;"> | ||
| <img alt="Release" src="https://img.shields.io/github/v/release/2phi/weac.svg?display_name=tag&color=f99a44&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAtCAYAAADsvzj/AAAACXBIWXMAAAsSAAALEgHS3X78AAAClUlEQVRoge1Z0W2DMBC9Vv0vGzQblE5QugEjZISMwAZNN2AEOkEzAtmAbkAmuMrSWbKezmBsC9IoT7KU4OPw8707G/PAzHQLeLwJFnciV4g7kWvDnci14WaIPCXeXxDRnohq51pHRC0RjYm+l8Gs7JGtYeaRdfTMXCT4tm0vviwGZm6ZeYe2sQ9oPQRcdAkESiCAGMUmiUjjcXxSrsdGIQR9KpEBHtKIjMoMRKZIjBJl1X+KrAYIL8ptzEiid/LCRZlCpJKGmka0C3PCVzhOTuEockZEa1p+uGTNAA7MXHvu9yV2D3YHp2/ITURL/hPYuESxdGr324FiCXfz85iTiCYpLI2ofbdvNyGpcoZwcvmdG8R+YhYH6POtR83MhGHEo4kUHl0fwA6j0cJEaBhBUoVS8rHYRBHxkdCqFNZ9N1q+3GhmnnXUxhVDBAenhloplQyJjrNsYaOhbVO8e7ilkdA07XOuLXC2r/aQsFGtlPxDyS0mspNBaTPoI6Hp2k10X5LXsFa4JLCKBRPBLXQIiVIGqVUzV35T2//FJEzTXqwKeTl6D3ip6pz/c/YWFRE9e/pe4f9F7Ps5p0iklMG9BAzoJdAOUQfancV2CLKGEGl7ppw4TMgKZbjoDTP08OGXiN6I6IGIPuR/DD4nZGXxJXJa9M6Pp/GDIpdvOWBAx7W00tH2WXz0kkOVonsfTD4Yf6eoKZqo/Z22FYhoWjlFdKmHFWt9H6mkiGiyOktUk7DWAZ2Ry9HT1+R4wJpfrExUfrQx5HC+9ZHpdy5HWxOJq1AK1iSyU651yrUobEnkN3j7EYAtpZUtGrQxkWz5QSsTwUXv30akcH5nK7sWW0jrIl+0siL109sSmJwwu2KzJcn7WY6I/gB+kRV89venQwAAAABJRU5ErkJggg==" style="vertical-align:middle;"/> | ||
| </a> | ||
| <a href="https://pypi.org/project/weac/" style="display:inline-block; margin-right:4px;"> | ||
| <img alt="Release" src="https://img.shields.io/pypi/v/weac.svg?logo=python&logoColor=white&color=f46b58&style=flat-square" style="vertical-align:middle;"/> | ||
| </a> | ||
| <a href="https://zenodo.org/badge/latestdoi/203163531" style="display:inline-block;"> | ||
| <img alt="Release" src="https://img.shields.io/badge/DOI-10.5281/zenodo.5773113-f03a6d.svg?style=flat-square" style="vertical-align:middle;"/> | ||
| </a> | ||
| </p> | ||
|
|
||
| What is WEAC? | ||
| ------------- | ||
|
|
||
| WEAC implements closed-form analytical models for the `mechanical analysis of dry-snow slabs on compliant weak layers <https://doi.org/10.5194/tc-14-115-2020>`_, the `prediction of anticrack onset <https://doi.org/10.5194/tc-14-131-2020>`_, and allows for the `analysis of stratified snow covers <https://doi.org/10.5194/tc-17-1475-2023>`_. | ||
|
|
||
| The model covers: | ||
| - **Propagation saw tests** (a) | ||
| - **Skier-loaded weak layers** (b) | ||
| - **Weak-layer crack nucleation** (c) | ||
|
|
||
| .. image:: _static/systems.png | ||
|
||
| :alt: WEAC System Overview | ||
| :width: 600px | ||
| :align: center | ||
|
|
||
|
|
||
| Quick Start | ||
| ----------- | ||
|
|
||
| .. code-block:: bash | ||
| pip install weac | ||
| .. code-block:: python | ||
| import weac | ||
| # Create a scenario configuration | ||
| scenario = weac.components.scenario_config.ScenarioConfig() | ||
| # Run analysis | ||
| results = weac.analysis.analyzer.Analyzer.analyze(scenario) | ||
| **🐙 View on GitHub:** `GitHub Repository <https://github.com/2phi/weac>`_ | ||
|
|
||
| Key Features | ||
| ------------ | ||
|
|
||
| * **Closed-form analytical models** for snow slab mechanics | ||
| * **Weak layer analysis** with compliance and collapse modeling | ||
| * **Anticrack prediction** using mixed-mode failure criteria | ||
| * **Stratified snow cover** analysis capabilities | ||
| * **Python-native** implementation with comprehensive documentation | ||
| * **Jupyter notebook** support for interactive analysis | ||
|
|
||
| Documentation Structure | ||
| ----------------------- | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
| :caption: Getting Started | ||
|
|
||
| weac | ||
| weac.components | ||
| weac.core | ||
| weac.analysis | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
| :caption: Contents: | ||
| :caption: Utilities & Tools | ||
|
|
||
| weac.utils | ||
| weac.logging_config | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
| :caption: Examples & Reference | ||
|
|
||
| modules | ||
|
|
||
| Research & Citations | ||
| -------------------- | ||
|
|
||
| **Cite the software:** | ||
| Rosendahl, P. L., Schneider, J., & Weissgraeber, P. (2022). Weak Layer Anticrack Nucleation Model (WEAC). Zenodo. https://doi.org/10.5281/zenodo.5773113 | ||
|
|
||
| **Key publications:** | ||
| - `A closed-form model for layered snow slabs <https://doi.org/10.5194/tc-17-1475-2023>`_ (Weißgraeber & Rosendahl, 2023) | ||
| - `Modeling snow slab avalanches caused by weak-layer failure <https://doi.org/10.5194/tc-14-115-2020>`_ (Rosendahl & Weißgraeber, 2020) | ||
|
|
||
| Support & Community | ||
| ------------------- | ||
|
|
||
| * `Report bugs <https://github.com/2phi/weac/issues>`_ | ||
| * `Request features <https://github.com/2phi/weac/issues>`_ | ||
| * `View releases <https://github.com/2phi/weac/releases>`_ | ||
| * `Download from PyPI <https://pypi.org/project/weac/>`_ | ||
|
|
||
| Getting Help | ||
| ------------ | ||
|
|
||
| * **Documentation**: This site provides comprehensive API documentation | ||
| * **Examples**: Check the modules section for usage examples | ||
| * **Research Papers**: Refer to the publications listed above for theoretical background | ||
| * **GitHub**: Visit the repository for source code and issue tracking | ||
|
|
||
| **Need help?** Open an issue on GitHub or check the documentation structure below. | ||
|
|
||
| Indices and tables | ||
| ================== | ||
| ------------------ | ||
|
|
||
| * :ref:`genindex` | ||
| * :ref:`modindex` | ||
| * :ref:`search` | ||
|
|
||
| .. |Version| image:: https://img.shields.io/github/v/release/2phi/weac.svg?display_name=tag&color=f99a44&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAtCAYAAADsvzj/AAAACXBIWXMAAAsSAAALEgHS3X78AAAClUlEQVRoge1Z0W2DMBC9Vv0vGzQblE5QugEjZISMwAZNN2AEOkEzAtmAbkAmuMrSWbKezmBsC9IoT7KU4OPw8707G/PAzHQLeLwJFnciV4g7kWvDnci14WaIPCXeXxDRnohq51pHRC0RjYm+l8Gs7JGtYeaRdfTMXCT4tm0vviwGZm6ZeYe2sQ9oPQRcdAkESiCAGMUmiUjjcXxSrsdGIQR9KpEBHtKIjMoMRKZIjBJl1X+KrAYIL8ptzEiid/LCRZlCpJKGmka0C3PCVzhOTuEockZEa1p+uGTNAA7MXHvu9yV2D3YHp2/ITURL/hPYuESxdGr324FiCXfz85iTiCYpLI2ofbdvNyGpcoZwcvmdG8R+YhYH6POtR83MhGHEo4kUHl0fwA6j0cJEaBhBUoVS8rHYRBHxkdCqFNZ9N1q+3GhmnnXUxhVDBAenhloplQxJjrNsYaOhbVO8e7lk0A07XOuLXC2r/aQsFGtlPxDyS0mspNBaTPoI6Hp2k10X5LXsFa4JLCKBRPBLXQIiVIGqVUzV35T2//FJEzTXqwKeTl6D3ip6pz/c/YWFRE9e/pe4f9F7Ps5p0iklMG9BAzoJdAOUQfancV2CLKGEGl7ppw4TMgKZbjoDTP08OGXiN6I6IGIPuR/DD4nZGXxJXJa9N6Pp/GDIpdvOWBAx7W00tH2WXz0kkOVonsfTD4Yf6eoKZqo/Z22FYhoWjlFdKmHFWt9H6mkiGiyOktUk7DWAZ2Ry9HT1+R4wJpfrExUfrQx5HC+9ZHpdy5HWxOJq1AK1iSyU651yrUobEnkN3j7EYAtpZUtGrQxkWz5QSsTwUXv30akcH5nK7sWW0jrIl+0siL109sSmJwwu2KzJcn7WY6I/gB+kRV89venQwAAAABJRU5ErkJggg== | ||
| :target: https://github.com/2phi/weac/releases | ||
|
|
||
| .. |PyPI| image:: https://img.shields.io/pypi/v/weac.svg?logo=python&logoColor=white&color=f46b58&style=flat-square | ||
| :target: https://pypi.org/project/weac/ | ||
|
|
||
| .. |DOI| image:: https://img.shields.io/badge/DOI-10.5281/zenodo.5773113-f03a6d.svg?style=flat-square | ||
| :target: https://zenodo.org/badge/latestdoi/203163531 | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,31 @@ | ||
| weac | ||
| ==== | ||
| WEAC Package Overview | ||
| ==================== | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 4 | ||
| :caption: Package Structure | ||
|
|
||
| weac | ||
| weac.components | ||
| weac.core | ||
| weac.analysis | ||
| weac.utils | ||
| weac.logging_config | ||
|
|
||
| Package Description | ||
| ================== | ||
|
|
||
| WEAC is a comprehensive Python package for analyzing dry-snow slab avalanche release using closed-form analytical models. The package is organized into several key modules: | ||
|
|
||
| **Core Components:** | ||
| - :doc:`weac.components` - Configuration and data structures | ||
| - :doc:`weac.core` - Core mathematical models and solvers | ||
| - :doc:`weac.analysis` - Analysis tools and result processing | ||
| - :doc:`weac.utils` - Utility functions and helpers | ||
|
|
||
| **Key Features:** | ||
| - Weak layer analysis with compliance modeling | ||
| - Anticrack prediction using mixed-mode failure criteria | ||
| - Support for stratified snow covers | ||
| - Comprehensive configuration management | ||
| - Result visualization and analysis tools |
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.
The configuration references 'custom.css' but there's no indication in the PR that this CSS file has been added to the _static directory. Ensure the custom.css file exists or remove this configuration line to avoid broken styling references.