Skip to content
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 SettlementRodMeasurement and SettlementRodMeasurementSeries classes #18

Merged
merged 7 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/lint_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ jobs:
- name: Test
run: coverage run -m pytest

- name: Post coverage results
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ matrix.python-version }}
parallel: true

finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
# - name: Post coverage results
# uses: coverallsapp/github-action@v2
# with:
# flag-name: run-${{ matrix.python-version }}
# parallel: true

# finish:
# needs: test
# if: ${{ always() }}
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@v2
# with:
# parallel-finished: true

lint:
name: Formatting check
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"sphinx.ext.mathjax",
"sphinx_autodoc_typehints",
"matplotlib.sphinxext.plot_directive",
"enum_tools.autoenum",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Indices and tables

tree/getting_started.rst


tree/reference.rst
Binary file added docs/tree/figures/settlement_rod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions docs/tree/reference.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.. _reference:

Reference
=========

.. _settlementRodMeasurement:

Settlement Rod Measurement
----------------------------

A settlement rod device consists of a rod and a (bottom) settlement plate (see figure below). The measurements are taken at the top of the rod (i.e. `rod_top`)
and at the `ground surface` and since the `rod length` is known, the settlement of at the bottom of the rod (i.e. `rod_bottom`) can be also derived.

.. image:: figures/settlement_rod.png

The class `SettlementRodMeasurement` presented below stores the data of a single settlement rod measurement.

.. autoclass:: baec.measurements.settlement_rod_measurement.SettlementRodMeasurement
:members:
:inherited-members:
:member-order: bysource

.. automethod:: __init__

.. autoenum:: baec.measurements.settlement_rod_measurement.SettlementRodMeasurementStatus
:members:


.. _settlementRodMeasurementSeries:

Settlement Rod Measurement Series
---------------------------------

.. autoclass:: baec.measurements.settlement_rod_measurement_series.SettlementRodMeasurementSeries
:members:
:inherited-members:
:member-order: bysource

.. automethod:: __init__


.. _measurementDevice:

Measurement Device
------------------

.. autoclass:: baec.measurements.measurement_device.MeasurementDevice
:members:
:inherited-members:
:member-order: bysource

.. automethod:: __init__

.. _project:

Project
-------

.. autoclass:: baec.project.Project
:members:
:inherited-members:
:member-order: bysource

.. automethod:: __init__

CoordinateReferenceSystems
--------------------------

.. _coordinateReferenceSystems:

.. autoclass:: baec.coordinates.CoordinateReferenceSystems
:members:
:inherited-members:
:member-order: bysource

.. automethod:: __init__
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies = [
'cems-nuclei[client]>=0.5,<1',
'matplotlib>=3.8,<4',
"tqdm[notebook]>4,<5",
"pyproj>3,<4",
]
license = { file = "LICENSE" }
readme = "README.md"
Expand All @@ -28,7 +29,8 @@ docs = [
"sphinx-autodoc-typehints==1.22",
"ipython==8.11.0",
"asteroid-sphinx-theme==0.0.3",
"sphinx_rtd_theme==1.2.0",
"sphinx_rtd_theme>1.2,<2",
"enum-tools[sphinx]>0.12,<0.13",
]
# lint dependencies from github super-linter v5
# See https://github.com/super-linter/super-linter/tree/main/dependencies/python
Expand Down Expand Up @@ -62,7 +64,7 @@ ensure_newline_before_comments = true
line_length = 88

[tool.mypy]
files = ["src/pypilecore"]
files = ["src/baec"]
mypy_path = 'src'
namespace_packages = true
show_error_codes = true
Expand All @@ -84,10 +86,8 @@ module = [
"matplotlib.*",
"requests.*",
"nuclei.*",
"pygef.*",
"natsort.*",
"shapely.*",
"pytest.*",
"scipy.*",
"pyproj.*",
]
ignore_missing_imports = true
Loading
Loading