Paidiverpy 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. paidiverpy-0.0.1/.editorconfig +26 -0
  2. paidiverpy-0.0.1/.githooks/pre-commit +20 -0
  3. paidiverpy-0.0.1/.github/workflows/build.yml +63 -0
  4. paidiverpy-0.0.1/.github/workflows/cffconvert.yml +25 -0
  5. paidiverpy-0.0.1/.github/workflows/documentation.yml +34 -0
  6. paidiverpy-0.0.1/.github/workflows/link-check.yml +40 -0
  7. paidiverpy-0.0.1/.github/workflows/release.yaml +50 -0
  8. paidiverpy-0.0.1/.github/workflows/sonarcloud.yml +23 -0
  9. paidiverpy-0.0.1/.github/workflows/tests.yml +34 -0
  10. paidiverpy-0.0.1/.gitignore +77 -0
  11. paidiverpy-0.0.1/.readthedocs.yaml +35 -0
  12. paidiverpy-0.0.1/.zenodo.json +11 -0
  13. paidiverpy-0.0.1/CHANGELOG.md +18 -0
  14. paidiverpy-0.0.1/CITATION.cff +30 -0
  15. paidiverpy-0.0.1/CODE_OF_CONDUCT.md +71 -0
  16. paidiverpy-0.0.1/CONTRIBUTING.md +68 -0
  17. paidiverpy-0.0.1/Dockerfile +33 -0
  18. paidiverpy-0.0.1/LICENSE +201 -0
  19. paidiverpy-0.0.1/MANIFEST.in +4 -0
  20. paidiverpy-0.0.1/PKG-INFO +444 -0
  21. paidiverpy-0.0.1/README.dev.md +190 -0
  22. paidiverpy-0.0.1/README.md +168 -0
  23. paidiverpy-0.0.1/docs/Makefile +20 -0
  24. paidiverpy-0.0.1/docs/_static/config_checker.png +0 -0
  25. paidiverpy-0.0.1/docs/_static/custom.css +23 -0
  26. paidiverpy-0.0.1/docs/_static/favicon_paidiver.ico +0 -0
  27. paidiverpy-0.0.1/docs/_static/logo_paidiver_docs.png +0 -0
  28. paidiverpy-0.0.1/docs/_static/nb_examples_1.png +0 -0
  29. paidiverpy-0.0.1/docs/_static/nb_examples_2.png +0 -0
  30. paidiverpy-0.0.1/docs/_static/nb_examples_3.png +0 -0
  31. paidiverpy-0.0.1/docs/_static/nb_examples_4.png +0 -0
  32. paidiverpy-0.0.1/docs/_static/nb_examples_5.png +0 -0
  33. paidiverpy-0.0.1/docs/_static/nb_examples_6.png +0 -0
  34. paidiverpy-0.0.1/docs/_static/nb_examples_7.png +0 -0
  35. paidiverpy-0.0.1/docs/_static/nb_examples_8.png +0 -0
  36. paidiverpy-0.0.1/docs/_static/nb_examples_9.png +0 -0
  37. paidiverpy-0.0.1/docs/_static/paidiver_organisation.png +0 -0
  38. paidiverpy-0.0.1/docs/_static/pipeline.html +135 -0
  39. paidiverpy-0.0.1/docs/_static/pipeline_images.html +224 -0
  40. paidiverpy-0.0.1/docs/_templates/.gitignore +0 -0
  41. paidiverpy-0.0.1/docs/conf.py +134 -0
  42. paidiverpy-0.0.1/docs/config_check.html +88 -0
  43. paidiverpy-0.0.1/docs/configuration_file.rst +83 -0
  44. paidiverpy-0.0.1/docs/contributing.rst +287 -0
  45. paidiverpy-0.0.1/docs/custom_algorithms.rst +130 -0
  46. paidiverpy-0.0.1/docs/example_data.rst +32 -0
  47. paidiverpy-0.0.1/docs/gallery.rst +259 -0
  48. paidiverpy-0.0.1/docs/images_metadata.rst +37 -0
  49. paidiverpy-0.0.1/docs/index.rst +75 -0
  50. paidiverpy-0.0.1/docs/install.rst +119 -0
  51. paidiverpy-0.0.1/docs/make.bat +36 -0
  52. paidiverpy-0.0.1/docs/package_organisation.rst +39 -0
  53. paidiverpy-0.0.1/docs/performances.rst +115 -0
  54. paidiverpy-0.0.1/docs/requirements.txt +14 -0
  55. paidiverpy-0.0.1/docs/usage.rst +75 -0
  56. paidiverpy-0.0.1/docs/user-guide/guide1/index.rst +25 -0
  57. paidiverpy-0.0.1/docs/user-guide/guide2/index.rst +189 -0
  58. paidiverpy-0.0.1/docs/user-guide/guide3/index.rst +8 -0
  59. paidiverpy-0.0.1/docs/user-guide/guide4/index.rst +8 -0
  60. paidiverpy-0.0.1/docs/why.rst +26 -0
  61. paidiverpy-0.0.1/environment.yml +39 -0
  62. paidiverpy-0.0.1/examples/config_files/config_benthic.yaml +50 -0
  63. paidiverpy-0.0.1/examples/config_files/config_benthic_client.yaml +70 -0
  64. paidiverpy-0.0.1/examples/config_files/config_benthic_dask.yaml +54 -0
  65. paidiverpy-0.0.1/examples/config_files/config_benthic_ifdo.yaml +48 -0
  66. paidiverpy-0.0.1/examples/config_files/config_benthic_test_steps.yaml +22 -0
  67. paidiverpy-0.0.1/examples/config_files/config_custom_algorithm.yaml +27 -0
  68. paidiverpy-0.0.1/examples/config_files/config_model.yaml +42 -0
  69. paidiverpy-0.0.1/examples/config_files/config_pelagic.yaml +37 -0
  70. paidiverpy-0.0.1/examples/config_files/config_simple.yaml +15 -0
  71. paidiverpy-0.0.1/examples/config_files/config_simple2.yaml +17 -0
  72. paidiverpy-0.0.1/examples/example_notebooks/config_metadata_example.ipynb +4876 -0
  73. paidiverpy-0.0.1/examples/example_notebooks/pipeline.ipynb +4946 -0
  74. paidiverpy-0.0.1/examples/example_notebooks/pipeline_cluster.ipynb +2812 -0
  75. paidiverpy-0.0.1/examples/example_notebooks/pipeline_custom_algorithm.ipynb +918 -0
  76. paidiverpy-0.0.1/examples/example_notebooks/pipeline_dask.ipynb +1149 -0
  77. paidiverpy-0.0.1/examples/example_notebooks/pipeline_generation.ipynb +2229 -0
  78. paidiverpy-0.0.1/examples/example_notebooks/pipeline_ifdo.ipynb +3096 -0
  79. paidiverpy-0.0.1/examples/example_notebooks/pipeline_interaction.ipynb +9842 -0
  80. paidiverpy-0.0.1/examples/example_notebooks/pipeline_testing_steps.ipynb +12508 -0
  81. paidiverpy-0.0.1/examples/example_notebooks/simple_processing.ipynb +1250 -0
  82. paidiverpy-0.0.1/examples/metadata/metadata_benthic.csv +101 -0
  83. paidiverpy-0.0.1/examples/metadata/metadata_ifdo_hf.json +877 -0
  84. paidiverpy-0.0.1/examples/metadata/metadata_pelagic.csv +59 -0
  85. paidiverpy-0.0.1/examples/polygons/region_polygon.cpg +1 -0
  86. paidiverpy-0.0.1/examples/polygons/region_polygon.dbf +0 -0
  87. paidiverpy-0.0.1/examples/polygons/region_polygon.geojson +8 -0
  88. paidiverpy-0.0.1/examples/polygons/region_polygon.prj +1 -0
  89. paidiverpy-0.0.1/examples/polygons/region_polygon.shp +0 -0
  90. paidiverpy-0.0.1/examples/polygons/region_polygon.shx +0 -0
  91. paidiverpy-0.0.1/project_setup.md +114 -0
  92. paidiverpy-0.0.1/pyproject.toml +182 -0
  93. paidiverpy-0.0.1/setup.cfg +4 -0
  94. paidiverpy-0.0.1/sonar-project.properties +12 -0
  95. paidiverpy-0.0.1/src/Paidiverpy.egg-info/PKG-INFO +444 -0
  96. paidiverpy-0.0.1/src/Paidiverpy.egg-info/SOURCES.txt +152 -0
  97. paidiverpy-0.0.1/src/Paidiverpy.egg-info/dependency_links.txt +1 -0
  98. paidiverpy-0.0.1/src/Paidiverpy.egg-info/entry_points.txt +2 -0
  99. paidiverpy-0.0.1/src/Paidiverpy.egg-info/requires.txt +60 -0
  100. paidiverpy-0.0.1/src/Paidiverpy.egg-info/top_level.txt +2 -0
  101. paidiverpy-0.0.1/src/cli/__init__.py +0 -0
  102. paidiverpy-0.0.1/src/cli/main.py +58 -0
  103. paidiverpy-0.0.1/src/paidiverpy/__init__.py +8 -0
  104. paidiverpy-0.0.1/src/paidiverpy/colour_layer/__init__.py +5 -0
  105. paidiverpy-0.0.1/src/paidiverpy/colour_layer/colour_layer.py +913 -0
  106. paidiverpy-0.0.1/src/paidiverpy/config/__init__.py +0 -0
  107. paidiverpy-0.0.1/src/paidiverpy/config/colour_params.py +99 -0
  108. paidiverpy-0.0.1/src/paidiverpy/config/config.py +388 -0
  109. paidiverpy-0.0.1/src/paidiverpy/config/config_params.py +67 -0
  110. paidiverpy-0.0.1/src/paidiverpy/config/convert_params.py +65 -0
  111. paidiverpy-0.0.1/src/paidiverpy/config/custom_params.py +15 -0
  112. paidiverpy-0.0.1/src/paidiverpy/config/pipeline_params.py +20 -0
  113. paidiverpy-0.0.1/src/paidiverpy/config/position_params.py +20 -0
  114. paidiverpy-0.0.1/src/paidiverpy/config/resample_params.py +92 -0
  115. paidiverpy-0.0.1/src/paidiverpy/configuration-schema.json +1284 -0
  116. paidiverpy-0.0.1/src/paidiverpy/convert_layer/__init__.py +5 -0
  117. paidiverpy-0.0.1/src/paidiverpy/convert_layer/convert_layer.py +294 -0
  118. paidiverpy-0.0.1/src/paidiverpy/custom_layer/__init__.py +5 -0
  119. paidiverpy-0.0.1/src/paidiverpy/custom_layer/_custom_algorithm_example.py +21 -0
  120. paidiverpy-0.0.1/src/paidiverpy/custom_layer/base_custom_algorithm.py +28 -0
  121. paidiverpy-0.0.1/src/paidiverpy/custom_layer/custom_layer.py +182 -0
  122. paidiverpy-0.0.1/src/paidiverpy/images_layer.py +449 -0
  123. paidiverpy-0.0.1/src/paidiverpy/metadata_parser/__init__.py +5 -0
  124. paidiverpy-0.0.1/src/paidiverpy/metadata_parser/metadata_parser.py +253 -0
  125. paidiverpy-0.0.1/src/paidiverpy/open_layer/__init__.py +5 -0
  126. paidiverpy-0.0.1/src/paidiverpy/open_layer/open_layer.py +256 -0
  127. paidiverpy-0.0.1/src/paidiverpy/paidiverpy.py +387 -0
  128. paidiverpy-0.0.1/src/paidiverpy/pipeline/__init__.py +5 -0
  129. paidiverpy-0.0.1/src/paidiverpy/pipeline/pipeline.py +340 -0
  130. paidiverpy-0.0.1/src/paidiverpy/position_layer/__init__.py +5 -0
  131. paidiverpy-0.0.1/src/paidiverpy/position_layer/position_layer.py +157 -0
  132. paidiverpy-0.0.1/src/paidiverpy/resample_layer/__init__.py +5 -0
  133. paidiverpy-0.0.1/src/paidiverpy/resample_layer/resample_layer.py +644 -0
  134. paidiverpy-0.0.1/src/paidiverpy/utils/__init__.py +0 -0
  135. paidiverpy-0.0.1/src/paidiverpy/utils/data.py +191 -0
  136. paidiverpy-0.0.1/src/paidiverpy/utils/docker.py +12 -0
  137. paidiverpy-0.0.1/src/paidiverpy/utils/dynamic_classes.py +40 -0
  138. paidiverpy-0.0.1/src/paidiverpy/utils/exceptions.py +30 -0
  139. paidiverpy-0.0.1/src/paidiverpy/utils/install_packages.py +61 -0
  140. paidiverpy-0.0.1/src/paidiverpy/utils/logging.py +65 -0
  141. paidiverpy-0.0.1/src/paidiverpy/utils/parallellisation.py +79 -0
  142. paidiverpy-0.0.1/tests/__init__.py +0 -0
  143. paidiverpy-0.0.1/tests/base_test_class.py +53 -0
  144. paidiverpy-0.0.1/tests/test_10_dask_cluster.py +36 -0
  145. paidiverpy-0.0.1/tests/test_1_config_metadata.py +57 -0
  146. paidiverpy-0.0.1/tests/test_2_simple_processing.py +52 -0
  147. paidiverpy-0.0.1/tests/test_3_pipeline.py +50 -0
  148. paidiverpy-0.0.1/tests/test_4_pipeline_testing_steps.py +86 -0
  149. paidiverpy-0.0.1/tests/test_5_pipeline_interaction.py +82 -0
  150. paidiverpy-0.0.1/tests/test_6_pipeline_ifdo.py +47 -0
  151. paidiverpy-0.0.1/tests/test_7_pipeline_generation.py +86 -0
  152. paidiverpy-0.0.1/tests/test_8_pipeline_dask.py +37 -0
  153. paidiverpy-0.0.1/tests/test_9_pipeline_custom_algorithm.py +37 -0
  154. paidiverpy-0.0.1/tests/utils/__init__.py +0 -0
@@ -0,0 +1,26 @@
1
+ # EditorConfig is awesome: http://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ # Unix-style newlines with a newline ending every file
7
+ [*]
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
11
+ charset = utf-8
12
+
13
+ # 4 space indentation
14
+ [*.{py,java,r,R}]
15
+ indent_style = space
16
+ indent_size = 4
17
+
18
+ # 2 space indentation
19
+ [*.{js,json,y{a,}ml,html,cwl}]
20
+ indent_style = space
21
+ indent_size = 2
22
+
23
+ [*.{md,Rmd,rst}]
24
+ trim_trailing_whitespace = false
25
+ indent_style = space
26
+ indent_size = 2
@@ -0,0 +1,20 @@
1
+ #!/bin/sh
2
+
3
+ echo "Script $0 triggered ..."
4
+
5
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
6
+ echo "Starting ruff analysis..."
7
+
8
+ # quietly run ruff
9
+ ruff check --fix
10
+ ruff format
11
+
12
+ # use return code to abort commit if necessary
13
+ if [ $? != "0" ]; then
14
+ echo "Commit aborted. Fix linter issues found by ruff before committing."
15
+ exit 1
16
+ fi
17
+
18
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
19
+ echo "Pre-commit checks completed successfully."
20
+ exit 0
@@ -0,0 +1,63 @@
1
+ name: Python package
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+
13
+ build:
14
+ name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
15
+ runs-on: ${{ matrix.os }}
16
+ strategy:
17
+ fail-fast: true
18
+ matrix:
19
+ os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
20
+ python-version: ['3.10', '3.11', '3.12']
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ - name: Python info
28
+ shell: bash -e {0}
29
+ run: |
30
+ which python
31
+ python --version
32
+ - name: Upgrade pip and install dependencies
33
+ run: |
34
+ python -m pip install --upgrade pip setuptools
35
+ python -m pip install .[dev,publishing]
36
+ - name: Run unit tests
37
+ run: python -m pytest -v
38
+ - name: Verify that we can build the package
39
+ run: python -m build
40
+ lint:
41
+ name: Linting build
42
+ runs-on: ubuntu-latest
43
+ strategy:
44
+ fail-fast: false
45
+ steps:
46
+ - uses: actions/checkout@v4
47
+ - name: Set up Python 3.9
48
+ uses: actions/setup-python@v5
49
+ with:
50
+ python-version: 3.9
51
+ - name: Python info
52
+ shell: bash -e {0}
53
+ run: |
54
+ which python
55
+ python --version
56
+ - name: Upgrade pip and install dependencies
57
+ run: |
58
+ python -m pip install --upgrade pip setuptools
59
+ python -m pip install .[dev,publishing]
60
+ - name: Check style against standards using ruff
61
+ run: |
62
+ ruff check
63
+ ruff format --check
@@ -0,0 +1,25 @@
1
+ name: cffconvert
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - develop
7
+ - main
8
+ pull_request:
9
+ branches:
10
+ - develop
11
+ - main
12
+
13
+ jobs:
14
+
15
+ verify:
16
+ name: "cffconvert"
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ name: Check out a copy of the repository
21
+
22
+ - name: Check whether the citation metadata from CITATION.cff is valid
23
+ uses: citation-file-format/cffconvert-github-action@2.0.0
24
+ with:
25
+ args: "--validate"
@@ -0,0 +1,34 @@
1
+ name: documentation
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
+ branches:
8
+ - develop
9
+ - main
10
+ jobs:
11
+ deploy-docs:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v4
20
+ with:
21
+ python-version: "3.12"
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip setuptools
26
+ pip install -r docs/requirements.txt
27
+
28
+ - name: Trigger Read the Docs build
29
+ env:
30
+ READTHEDOCS_API_KEY: ${{ secrets.READTHEDOCS_API_KEY }}
31
+ run: |
32
+ curl -X POST -H "Authorization: Token ${READTHEDOCS_API_KEY}" \
33
+ -d "branch=develop" \
34
+ https://readthedocs.org/api/v3/projects/paidiverpy/versions/latest/builds/
@@ -0,0 +1,40 @@
1
+ name: link-check
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - develop
8
+ - main
9
+ pull_request:
10
+ branches:
11
+ - develop
12
+ - main
13
+ schedule:
14
+ - cron: '0 0 1 * *' # first day of every month at midnight
15
+
16
+ permissions:
17
+ contents: read
18
+ issues: write
19
+
20
+ jobs:
21
+ linkChecker:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+
26
+ - name: Link Checker
27
+ id: lychee
28
+ uses: lycheeverse/lychee-action@v1
29
+
30
+ - name: Set Issue Title
31
+ id: set_title
32
+ run: echo "ISSUE_TITLE=Link Checker Report - $(date '+%Y-%m-%d')" >> $GITHUB_ENV
33
+
34
+ - name: Create Issue From File
35
+ if: env.lychee_exit_code != 0
36
+ uses: peter-evans/create-issue-from-file@v5
37
+ with:
38
+ title: ${{ env.ISSUE_TITLE }}
39
+ content-filepath: ./lychee/out.md
40
+ labels: report, automated issue
@@ -0,0 +1,50 @@
1
+ name: Release Package
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - develop
10
+ - main
11
+
12
+ jobs:
13
+ release:
14
+ runs-on: ubuntu-latest
15
+
16
+ permissions:
17
+ contents: write
18
+ packages: write
19
+
20
+ steps:
21
+ - name: Checkout Repository
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v4
26
+ with:
27
+ python-version: '3.10'
28
+
29
+ - name: Install Dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install build twine
33
+
34
+ - name: Build Package
35
+ run: python -m build
36
+
37
+ - name: Publish to PyPI
38
+ env:
39
+ TWINE_USERNAME: "__token__"
40
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
41
+ run: python -m twine upload dist/*
42
+
43
+ zenodo:
44
+ needs: release
45
+ runs-on: ubuntu-latest
46
+
47
+ steps:
48
+ - name: Trigger Zenodo Archival
49
+ if: success()
50
+ run: echo "Zenodo archival handled automatically by GitHub release."
@@ -0,0 +1,23 @@
1
+ name: sonarcloud
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - develop
7
+ - main
8
+ pull_request:
9
+ types: [opened, synchronize, reopened]
10
+
11
+ jobs:
12
+ sonarcloud:
13
+ name: SonarCloud
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0
19
+ - name: SonarCloud Scan
20
+ uses: SonarSource/sonarcloud-github-action@master
21
+ env:
22
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
23
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -0,0 +1,34 @@
1
+ name: Run tests
2
+
3
+ on: pull_request
4
+
5
+ jobs:
6
+ run-tests:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ python-version: ["3.10"]
11
+
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - name: Set up Miniconda
16
+ uses: conda-incubator/setup-miniconda@v3
17
+ with:
18
+ python-version: ${{ matrix.python-version }}
19
+
20
+ - name: Initialize Conda
21
+ run: |
22
+ conda init bash
23
+
24
+ - name: Create conda environment
25
+ run: |
26
+ conda env create -f environment.yml
27
+ source ~/.bashrc
28
+ conda activate Paidiverpy
29
+ pip install .
30
+ pip install ".[test]"
31
+
32
+ - name: Test with pytest
33
+ run: |
34
+ conda run -n Paidiverpy pytest tests/
@@ -0,0 +1,77 @@
1
+ # Data
2
+ data/
3
+ notebooks/
4
+ *.paidiverpy_cache/*
5
+ *output/*
6
+ output/
7
+ examples/examples_notebooks/output/*
8
+ examples/examples_notebooks/*.yaml
9
+
10
+ # Byte-compiled / optimized / DLL files
11
+ __pycache__/
12
+ *.py[cod]
13
+ *$py.class
14
+
15
+ # Distribution / packaging
16
+ .Python
17
+ build/
18
+ _build/
19
+ docs/_build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .nox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ *.py,cover
48
+ .hypothesis/
49
+ .pytest_cache/
50
+ .python-version
51
+ cover/
52
+
53
+ # Jupyter Notebook
54
+ .ipynb_checkpoints
55
+
56
+ # IPython
57
+ profile_default/
58
+ ipython_config.py
59
+
60
+ # pyenv
61
+ # For a library or package, you might want to ignore these files since the code is
62
+ # intended to run in multiple environments; otherwise, check them in:
63
+ .python-version
64
+ __pypackages__/
65
+
66
+ # Environments
67
+ .env
68
+ .venv
69
+ env/
70
+ venv/
71
+ ENV/
72
+ env.bak/
73
+ venv.bak/
74
+ credentials.json
75
+
76
+ # ruff
77
+ .ruff_cache/
@@ -0,0 +1,35 @@
1
+ # Read the Docs configuration file for Sphinx projects
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version and other tools you might need
8
+ build:
9
+ os: ubuntu-22.04
10
+ tools:
11
+ python: "3.12"
12
+ # You can also specify other tool versions:
13
+ # nodejs: "20"
14
+ # rust: "1.70"
15
+ # golang: "1.20"
16
+
17
+ # Build documentation in the "docs/" directory with Sphinx
18
+ sphinx:
19
+ configuration: docs/conf.py
20
+ # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21
+ # builder: "dirhtml"
22
+ # Fail on all warnings to avoid broken references
23
+ # fail_on_warning: true
24
+
25
+ # Optionally build your docs in additional formats such as PDF and ePub
26
+ # formats:
27
+ # - pdf
28
+ # - epub
29
+
30
+ # Optional but recommended, declare the Python requirements required
31
+ # to build your documentation
32
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33
+ python:
34
+ install:
35
+ - requirements: docs/requirements.txt
@@ -0,0 +1,11 @@
1
+ {
2
+ "title": "Paidiverpy",
3
+ "creators": [
4
+ {"name": "Ferreira, Tobias", "affiliation": "NOC"}
5
+ ],
6
+ "description": "A library to preprocess image data.",
7
+ "keywords": ["data", "paidiver", "noc"],
8
+ "license": "Apache-2.0",
9
+ "version": "0.0.1",
10
+ "upload_type": "software"
11
+ }
@@ -0,0 +1,18 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.0.1] - 1900-12-31
10
+
11
+ ### Added
12
+
13
+ ### Removed
14
+
15
+ ### Changed
16
+
17
+ [Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...HEAD
18
+ [0.0.1]: https://github.com/olivierlacan/keep-a-changelog/releases/tag/v0.0.1
@@ -0,0 +1,30 @@
1
+ cff-version: "1.2.0"
2
+ title: "paidiverpy"
3
+ authors:
4
+ - family-names: Ferreira
5
+ given-names: Tobias
6
+ orcid: "https://orcid.org/0000-0002-0888-9751"
7
+ - family-names: Masoudi
8
+ given-names: Mojtaba
9
+ orcid: "https://orcid.org/0000-0002-0007-0362"
10
+ - family-names: Loïc
11
+ given-names: Audenhaege
12
+ name-particle: Van
13
+ orcid: "https://orcid.org/0000-0003-3973-029X"
14
+ - family-names: Orenstein
15
+ given-names: Erik
16
+ orcid: "https://orcid.org/0000-0002-9822-6774"
17
+ - family-names: Sauze
18
+ given-names: Colin
19
+ orcid: "https://orcid.org/0000-0001-5368-9217"
20
+ - family-names: Durden
21
+ given-names: Jennife
22
+ orcid: "https://orcid.org/0000-0002-6529-9109"
23
+ date-released: 2025-01-14
24
+ version: "0.0.1"
25
+ doi: 10.0000/FIXME
26
+ url: "https://github.com/paidiver/paidiverpy"
27
+ keywords:
28
+ - "image processing"
29
+ - "machine learning"
30
+ message: "If you use this software, please cite it using these metadata."
@@ -0,0 +1,71 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ education, socio-economic status, nationality, personal appearance, race,
10
+ religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at soutobias@yahoo.com.br. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
@@ -0,0 +1,68 @@
1
+ # Contributing guidelines
2
+
3
+ We welcome any kind of contribution to our software, from simple comment or question to a full fledged [pull request](https://help.github.com/articles/about-pull-requests/). Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md).
4
+
5
+ A contribution can be one of the following cases:
6
+
7
+ 1. you have a question;
8
+ 1. you think you may have found a bug (including unexpected behavior);
9
+ 1. you want to make some kind of change to the code base (e.g. to fix a bug, to add a new feature, to update documentation);
10
+ 1. you want to make a new release of the code base.
11
+
12
+ The sections below outline the steps in each case.
13
+
14
+ ## You have a question
15
+
16
+ 1. use the search functionality [here](https://github.com/paidiver/paidiverpy/issues) to see if someone already filed the same issue;
17
+ 2. if your issue search did not yield any relevant results, make a new issue;
18
+ 3. apply the "Question" label; apply other labels when relevant.
19
+
20
+ ## You think you may have found a bug
21
+
22
+ 1. use the search functionality [here](https://github.com/paidiver/paidiverpy/issues) to see if someone already filed the same issue;
23
+ 1. if your issue search did not yield any relevant results, make a new issue, making sure to provide enough information to the rest of the community to understand the cause and context of the problem. Depending on the issue, you may want to include:
24
+ - the [SHA hashcode](https://help.github.com/articles/autolinked-references-and-urls/#commit-shas) of the commit that is causing your problem;
25
+ - some identifying information (name and version number) for dependencies you're using;
26
+ - information about the operating system;
27
+ 1. apply relevant labels to the newly created issue.
28
+
29
+ ## You want to make some kind of change to the code base
30
+
31
+ 1. (**important**) announce your plan to the rest of the community *before you start working*. This announcement should be in the form of a (new) issue;
32
+ 1. (**important**) wait until some kind of consensus is reached about your idea being a good idea;
33
+ 1. if needed, fork the repository to your own Github profile and create your own feature branch off of the latest main commit. While working on your feature branch, make sure to stay up to date with the main branch by pulling in changes, possibly from the 'upstream' repository (follow the instructions [here](https://help.github.com/articles/configuring-a-remote-for-a-fork/) and [here](https://help.github.com/articles/syncing-a-fork/));
34
+ 1. install dependencies (see the [development documentation](README.dev.md#development_install));
35
+ 1. make sure the existing tests still work by running ``pytest``;
36
+ 1. add your own tests (if necessary);
37
+ 1. update or expand the documentation;
38
+ 1. update the `CHANGELOG.md` file with your change;
39
+ 1. [push](http://rogerdudler.github.io/git-guide/) your feature branch to (your fork of) the paidiverpy repository on GitHub;
40
+ 1. create the pull request, e.g. following the instructions [here](https://help.github.com/articles/creating-a-pull-request/).
41
+
42
+ In case you feel like you've made a valuable contribution, but you don't know how to write or run tests for it, or how to generate the documentation: don't let this discourage you from making the pull request; we can help you! Just go ahead and submit the pull request, but keep in mind that you might be asked to append additional commits to your pull request.
43
+
44
+ ## You want to make a new release of the code base
45
+
46
+ To create a release you need write permission on the repository.
47
+
48
+ 1. Check the author list in [`CITATION.cff`](CITATION.cff)
49
+ 1. Bump the version using `bump-my-version bump <major|minor|patch>`. For example, `bump-my-version bump major` will increase major version numbers everywhere it's needed (code, meta, etc.) in the repo. Alternatively the version can be manually changed in paidiverpy/__init__.py, pyproject.toml, CITATION.cffand docs/conf.py (and other places it was possibly added).
50
+ 1. Update the `CHANGELOG.md` to include changes made
51
+ 1. Go to the [GitHub release page](https://github.com/paidiver/paidiverpy/releases)
52
+ 1. Press draft a new release button
53
+ 1. Fill version, title and description field
54
+ 1. Press the Publish Release button
55
+ <!--
56
+ For projects that automatically publish to PyPI using a release or publish workflow, something like the following could be useful to add (make sure to replace the names and links):
57
+
58
+ 1. Wait until [PyPi publish workflow](https://github.com/paidiver/paidiverpy/actions/workflows/publish.yml) has completed
59
+ 1. Verify new release is on [PyPi](https://pypi.org/project/matchms/#history)
60
+ -->
61
+ <!--
62
+ For projects that also build conda packages, e.g. on conda-forge or Bioconda, something like the following could be useful to add (example taken from matchms, make sure to replace the names and links):
63
+
64
+ 1. Wait until new release is also on Bioconda (https://anaconda.org/bioconda/paidiverpy) via a automaticly created PR on [bioconda recipes repo](https://github.com/bioconda/bioconda-recipes/pulls?q=is%3Apr+is%3Aopen+paidiverpy)
65
+ 1. Test paidiverpy from bioconda by manually running [Conda verify](https://github.com/paidiver/paidiverpy/actions/workflows/conda_verify.yml) workflow
66
+ -->
67
+
68
+ Also a Zenodo entry will be made for the release with its own DOI.
@@ -0,0 +1,33 @@
1
+ FROM python:3.10-slim
2
+
3
+ ENV PYTHONUNBUFFERED=1 \
4
+ PYTHONDONTWRITEBYTECODE=1 \
5
+ POETRY_VIRTUALENVS_CREATE=false
6
+
7
+ WORKDIR /app
8
+
9
+ RUN apt-get update
10
+ RUN apt-get install -y apt-utils build-essential
11
+ RUN apt-get install -y libexempi-dev libxslt1-dev
12
+ RUN apt-get install -y libgraphviz-dev
13
+ RUN apt-get install -y libopencv-dev libgdal-dev
14
+ RUN apt-get install -y curl unzip
15
+ RUN rm -rf /var/lib/apt/lists/*
16
+
17
+ RUN pip install --upgrade pip setuptools wheel
18
+
19
+ RUN mkdir /app/config_files
20
+ RUN mkdir /app/output
21
+ RUN mkdir /app/input
22
+ RUN mkdir /app/custom_algorithms
23
+ COPY pyproject.toml .
24
+ COPY LICENSE README.md ./
25
+ COPY src/ src/
26
+
27
+ RUN pip install .
28
+
29
+ ENV IS_DOCKER=true
30
+
31
+ ENTRYPOINT ["paidiverpy"]
32
+
33
+ CMD ["--help"]