Skip to content

Commit

Permalink
Add documentation for various parts of software
Browse files Browse the repository at this point in the history
  • Loading branch information
brandynlucca authored Mar 1, 2024
1 parent 93f0dcf commit 697114e
Show file tree
Hide file tree
Showing 13 changed files with 259 additions and 227 deletions.
55 changes: 32 additions & 23 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
# Table of contents
# Learn more at https://jupyterbook.org/customize/toc.html

format: jb-book
root: index
parts:
# - file: markdown
- caption: Documentation
chapters:
- file: classes-datastructures
- file: example_notebooks/workflow_minimal.ipynb
- file: input-files
- caption: Notebooks
chapters:
- file: example_notebooks/echopro_workflow.ipynb
- file: example_notebooks/reports_workflow.ipynb
- file: example_notebooks/semi_variogram_workflow.ipynb
- file: example_notebooks/kriging_mesh_walkthrough.ipynb
- file: example_notebooks/transect_selection_workflow.ipynb
- file: example_notebooks/bootstrapping_walkthrough.ipynb
- caption: Help & reference
chapters:
- file: api
# Table of contents
# Learn more at https://jupyterbook.org/customize/toc.html

format: jb-book
root: index
parts:
# - file: markdown
- caption: Documentation
chapters:
- file: core_data_structure
- file: input-files
- file: workflow_minimal.ipynb
- file: glossary
title: theory
sections:
- file: theory/ts_length_conversion
- file: theory/acoustics_to_biomass_conversion
- file: theory/semivariograms
- file: theory/kriging
- file: theory/stratified_statistics
- file: theory/general_equations
- caption: Notebooks
chapters:
- file: example_notebooks/echopro_workflow.ipynb
- file: example_notebooks/reports_workflow.ipynb
- file: example_notebooks/semi_variogram_workflow.ipynb
- file: example_notebooks/kriging_mesh_walkthrough.ipynb
- file: example_notebooks/transect_selection_workflow.ipynb
- file: example_notebooks/bootstrapping_walkthrough.ipynb
- caption: Help & reference
chapters:
- file: api
76 changes: 39 additions & 37 deletions docs/classes-datastructures.md → docs/core_data_structure.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
# Classes and data structures

## Classes

Python EchoPro is designed using an object-oriented approach where data are stored in core classes and computations are called as methods (functions) on those classes.

- Core class
- survey.Survey
- All actions and computations are orchestrated from this class
- computation
- computation.transect_results.ComputeTransectVariables
- computation.semivariogram.SemiVariogram
- computation.kriging.Kriging
- computation.kriging_variables.ComputeKrigingVariables
- computation.bootstrapping.Bootstrapping
- data loaders
- data_loader.kriging_mesh.KrigingMesh
- data_loader.biological_data.LoadBioData
- data_loader.stratification_data.LoadStrataData
- report generation
- reports.Reports

### Other notes

- `bio_calc`: From `computation.transect_results.ComputeTransectVariables`; and also from Kriging?
- Categorize the long list of df's and gdf's available on `bio_calc`; eg, `kriging`, `kriging_bin`, `transect`, `weight_fraction`, etc. These can be categorized either by prefix or suffix
- Only the 6 "results" tables are gdf's: transect vs kriging, and sex (all[empty]/male/female). eg, `transect_results_male_gdf`
- `bin_ds` is an xarray dataset
- Most of the other objects are dataframes (`_df`), but there are a few others that don't have a clarifying suffix: `strata_sig_b`, `all_strata`, `missing_strata`, `percentage_transects_selected`, `sel_tran_strata_choice` (a dict), `stratum_choices` (a dict)


## Data structures

- df's acessible from the `survey`
- innputs
- others
- `bin_ds`
# Classes and data structures

![ text ](images/core_data_structure.jpg)

## Classes

Python EchoPro is designed using an object-oriented approach where data are stored in core classes and computations are called as methods (functions) on those classes.

- Core class
- survey.Survey
- All actions and computations are orchestrated from this class
- computation
- computation.transect_results.ComputeTransectVariables
- computation.semivariogram.SemiVariogram
- computation.kriging.Kriging
- computation.kriging_variables.ComputeKrigingVariables
- computation.bootstrapping.Bootstrapping
- data loaders
- data_loader.kriging_mesh.KrigingMesh
- data_loader.biological_data.LoadBioData
- data_loader.stratification_data.LoadStrataData
- report generation
- reports.Reports

### Other notes

- `bio_calc`: From `computation.transect_results.ComputeTransectVariables`; and also from Kriging?
- Categorize the long list of df's and gdf's available on `bio_calc`; eg, `kriging`, `kriging_bin`, `transect`, `weight_fraction`, etc. These can be categorized either by prefix or suffix
- Only the 6 "results" tables are gdf's: transect vs kriging, and sex (all[empty]/male/female). eg, `transect_results_male_gdf`
- `bin_ds` is an xarray dataset
- Most of the other objects are dataframes (`_df`), but there are a few others that don't have a clarifying suffix: `strata_sig_b`, `all_strata`, `missing_strata`, `percentage_transects_selected`, `sel_tran_strata_choice` (a dict), `stratum_choices` (a dict)


## Data structures

- df's acessible from the `survey`
- innputs
- others
- `bin_ds`
- results gdf's
3 changes: 3 additions & 0 deletions docs/glossary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Glossary of all symbols, indices, and notations used for mathematical equations and variables contained within the `Survey` class object.

![ text ](images/symbols.jpeg)
Binary file added docs/images/core_data_structure.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/example_indexing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/symbols.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 697114e

Please sign in to comment.