Skip to content

Commit

Permalink
doc/autosum.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Apr 27, 2024
1 parent 4599b2c commit 8bba362
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Release notes

See also the
[unreleased changes](https://foss.heptapod.net/fluiddyn/fluidimage/-/compare/0.4.5...branch%2Fdefault).
[unreleased changes](https://foss.heptapod.net/fluiddyn/fluidimage/-/compare/0.4.6...branch%2Fdefault).

## [0.4.6] (2024-04-20)

Expand Down
28 changes: 23 additions & 5 deletions doc/autosum.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
API reference
-------------

Fluidimage contains the following subpackages

.. autosummary::
:toctree: _generated/

Expand All @@ -9,13 +11,29 @@ API reference
fluidimage.data_objects
fluidimage.works
fluidimage.calcul
fluidimage.bos
fluidimage.optical_flow
fluidimage.piv
fluidimage.preproc
fluidimage.image2image
fluidimage.calibration
fluidimage.reconstruct
fluidimage.postproc
fluidimage.util
fluidimage.gui

We have also few utility modules:

.. autosummary::
:toctree: _generated/

fluidimage.config
fluidimage.run_from_xml
fluidimage.synthetic
fluidimage.uvmat

Finally, there are few modules to improve the API for common processing:

.. autosummary::
:toctree: _generated/

fluidimage.bos
fluidimage.optical_flow
fluidimage.piv
fluidimage.preproc
fluidimage.image2image
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ platforms = ["linux-64", "win-64", "osx-64", "osx-arm64"]
# use as `pixi run install-editable`
install-dependencies = "pixi install"
install-editable = {cmd = "pip install -e . -v --no-build-isolation --no-deps", depends_on = ["install-dependencies"]}
test = "export OMP_NUM_THREADS=1 && pytest src -v"
test = "export OMP_NUM_THREADS=1 && pytest src -v -s"

[dependencies]
python = ">=3.9,<3.11"
Expand Down
8 changes: 6 additions & 2 deletions src/fluidimage/config.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
"""Handle Fluidimage configuration"""

import os
from configparser import ConfigParser


def get_config():
"""Get configuration from .fluidimagerc"""
config = ConfigParser()

home = os.path.expanduser("~")
path_config = os.path.join(home, ".fluidimagerc")

if os.path.exists(path_config):
config.read(path_config)
if not os.path.exists(path_config):
return {}
config.read(path_config)

config_dict = {}
for section in config.sections():
Expand Down
3 changes: 3 additions & 0 deletions src/fluidimage/synthetic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Production of synthetic images"""

import numpy as np


Expand All @@ -9,6 +11,7 @@ def make_synthetic_images(
epsilon=0.0,
part_size=np.sqrt(1 / 0.5),
):
"""Produce synthetic images for testing PIV"""
ny, nx = tuple(shape_im0)

displacement_x, displacement_y = tuple(displacements)
Expand Down

0 comments on commit 8bba362

Please sign in to comment.