resfo-utilities 0.3.0b0__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.
- resfo_utilities-0.3.0b0/.github/ISSUE_TEMPLATE/bug_report.md +31 -0
- resfo_utilities-0.3.0b0/.github/dependabot.yml +18 -0
- resfo_utilities-0.3.0b0/.github/mypy-matcher.json +18 -0
- resfo_utilities-0.3.0b0/.github/workflows/publish_to_pypi.yml +28 -0
- resfo_utilities-0.3.0b0/.github/workflows/testing.yml +36 -0
- resfo_utilities-0.3.0b0/.github/workflows/typing.yml +43 -0
- resfo_utilities-0.3.0b0/.gitignore +48 -0
- resfo_utilities-0.3.0b0/.mypy.ini +24 -0
- resfo_utilities-0.3.0b0/.pre-commit-config.yaml +53 -0
- resfo_utilities-0.3.0b0/.readthedocs.yaml +16 -0
- resfo_utilities-0.3.0b0/CONTRIBUTING.md +28 -0
- resfo_utilities-0.3.0b0/LICENSE.md +166 -0
- resfo_utilities-0.3.0b0/PKG-INFO +74 -0
- resfo_utilities-0.3.0b0/README.md +36 -0
- resfo_utilities-0.3.0b0/SECURITY.md +16 -0
- resfo_utilities-0.3.0b0/docs/requirements.txt +2 -0
- resfo_utilities-0.3.0b0/docs/source/api_reference.rst +51 -0
- resfo_utilities-0.3.0b0/docs/source/conf.py +28 -0
- resfo_utilities-0.3.0b0/docs/source/glossary.rst +23 -0
- resfo_utilities-0.3.0b0/docs/source/index.rst +11 -0
- resfo_utilities-0.3.0b0/pyproject.toml +66 -0
- resfo_utilities-0.3.0b0/setup.cfg +4 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities/__init__.py +29 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities/_cornerpoint_grid.py +569 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities/_summary_keys.py +404 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities/_summary_reader.py +594 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities/testing/__init__.py +88 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities/testing/_egrid_generator.py +422 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities/testing/_summary_generator.py +568 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities.egg-info/PKG-INFO +74 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities.egg-info/SOURCES.txt +47 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities.egg-info/dependency_links.txt +1 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities.egg-info/requires.txt +19 -0
- resfo_utilities-0.3.0b0/src/resfo_utilities.egg-info/top_level.txt +1 -0
- resfo_utilities-0.3.0b0/tests/__init__.py +0 -0
- resfo_utilities-0.3.0b0/tests/conftest.py +10 -0
- resfo_utilities-0.3.0b0/tests/integration/__init__.py +0 -0
- resfo_utilities-0.3.0b0/tests/integration/conftest.py +14 -0
- resfo_utilities-0.3.0b0/tests/integration/test_grid.py +315 -0
- resfo_utilities-0.3.0b0/tests/performance/__init__.py +0 -0
- resfo_utilities-0.3.0b0/tests/performance/test_find_cell_performance.py +29 -0
- resfo_utilities-0.3.0b0/tests/unit/__init__.py +0 -0
- resfo_utilities-0.3.0b0/tests/unit/test_cornerpoint_grid.py +727 -0
- resfo_utilities-0.3.0b0/tests/unit/test_summary_keys.py +335 -0
- resfo_utilities-0.3.0b0/tests/unit/test_summary_reader.py +363 -0
- resfo_utilities-0.3.0b0/tests/unit/testing/__init__.py +0 -0
- resfo_utilities-0.3.0b0/tests/unit/testing/test_egrid_generator.py +83 -0
- resfo_utilities-0.3.0b0/tests/unit/testing/test_summary_generator.py +40 -0
- resfo_utilities-0.3.0b0/uv.lock +1066 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Environment (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Version [e.g. 4.0.0]
|
|
29
|
+
|
|
30
|
+
**Additional context**
|
|
31
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 2
|
|
3
|
+
updates:
|
|
4
|
+
- package-ecosystem: "github-actions"
|
|
5
|
+
directory: "/"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: "weekly"
|
|
8
|
+
|
|
9
|
+
- package-ecosystem: "uv"
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "weekly"
|
|
13
|
+
allow:
|
|
14
|
+
- dependency-type: "all"
|
|
15
|
+
groups:
|
|
16
|
+
all-deps:
|
|
17
|
+
patterns:
|
|
18
|
+
- "*"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"problemMatcher": [
|
|
3
|
+
{
|
|
4
|
+
"owner": "mypy",
|
|
5
|
+
"severity": "error",
|
|
6
|
+
"pattern": [
|
|
7
|
+
{
|
|
8
|
+
"regexp": "^([^:]*):(\\d+):(?:(\\d+):)? error: (.*?)(?: \\[(\\S+)\\])?$",
|
|
9
|
+
"file": 1,
|
|
10
|
+
"line": 2,
|
|
11
|
+
"column": 3,
|
|
12
|
+
"message": 4,
|
|
13
|
+
"code": 5
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Publish Python 🐍 distributions 📦 to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-n-publish:
|
|
10
|
+
environment:
|
|
11
|
+
name: pypi
|
|
12
|
+
url: https://pypi.org/p/resfo-utilities
|
|
13
|
+
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v5
|
|
19
|
+
- uses: actions/setup-python@v6
|
|
20
|
+
with:
|
|
21
|
+
python-version: 3.13
|
|
22
|
+
cache: 'pip'
|
|
23
|
+
- name: Install pypa/build
|
|
24
|
+
run: python -m pip install build
|
|
25
|
+
- name: Build a binary wheel and a source tarball
|
|
26
|
+
run: python -m build --sdist --wheel --outdir dist/ .
|
|
27
|
+
- name: Publish package distributions to PyPI
|
|
28
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Run tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
tags: "*"
|
|
8
|
+
pull_request:
|
|
9
|
+
env:
|
|
10
|
+
UV_FROZEN: true # https://docs.astral.sh/uv/configuration/environment/#uv_frozen
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
tests:
|
|
18
|
+
name: "Python ${{ matrix.python-version }}"
|
|
19
|
+
runs-on: "ubuntu-latest"
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v5
|
|
26
|
+
- uses: actions/setup-python@v6
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
- uses: astral-sh/setup-uv@v7
|
|
30
|
+
with:
|
|
31
|
+
enable-cache: true
|
|
32
|
+
python-version: ${{ matrix.python-version }}
|
|
33
|
+
- run: uv sync --all-extras
|
|
34
|
+
- run: uv run pytest tests/
|
|
35
|
+
- run: uv run pytest --doctest-modules src/
|
|
36
|
+
- run: uv run sphinx-build -W -n -E docs/source/ docs/output
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Type checking
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
UV_FROZEN: true
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
type-checking:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
timeout-minutes: 15
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v5
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
filter: tree:0
|
|
26
|
+
|
|
27
|
+
- uses: actions/setup-python@v6
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.13"
|
|
30
|
+
|
|
31
|
+
- name: Install uv
|
|
32
|
+
uses: astral-sh/setup-uv@v7
|
|
33
|
+
with:
|
|
34
|
+
enable-cache: true
|
|
35
|
+
python-version: "3.13"
|
|
36
|
+
|
|
37
|
+
- run: |
|
|
38
|
+
uv sync --all-extras
|
|
39
|
+
|
|
40
|
+
- run: echo ::add-matcher::.github/mypy-matcher.json
|
|
41
|
+
- name: Run mypy
|
|
42
|
+
run: |
|
|
43
|
+
uv run mypy src
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# NFS files marked for deletion
|
|
2
|
+
.nfs*
|
|
3
|
+
|
|
4
|
+
# Temporary files when editing
|
|
5
|
+
*.swp
|
|
6
|
+
*~
|
|
7
|
+
|
|
8
|
+
# IDE ignore
|
|
9
|
+
## IntelliJ/PyCharm
|
|
10
|
+
.idea
|
|
11
|
+
*.iml
|
|
12
|
+
## VS code
|
|
13
|
+
.vscode
|
|
14
|
+
## Eclipse?
|
|
15
|
+
/.project
|
|
16
|
+
# neovim (reversed rule)
|
|
17
|
+
!.github
|
|
18
|
+
|
|
19
|
+
# pytest ignores
|
|
20
|
+
.pytest_cache
|
|
21
|
+
|
|
22
|
+
# bytecode compiled python
|
|
23
|
+
__pycache__
|
|
24
|
+
|
|
25
|
+
# GNU tags
|
|
26
|
+
/GPATH
|
|
27
|
+
/GRTAGS
|
|
28
|
+
/GTAGS
|
|
29
|
+
/gtags.sh
|
|
30
|
+
|
|
31
|
+
# MacOS
|
|
32
|
+
*.DS_Store
|
|
33
|
+
scratch.sparsebundle
|
|
34
|
+
|
|
35
|
+
# Common Python virtual env dir
|
|
36
|
+
/venv
|
|
37
|
+
|
|
38
|
+
# python package. by distutils
|
|
39
|
+
*.egg*
|
|
40
|
+
|
|
41
|
+
## pip install without -e
|
|
42
|
+
/build
|
|
43
|
+
|
|
44
|
+
# cache folder for hypothesis framework
|
|
45
|
+
.hypothesis
|
|
46
|
+
|
|
47
|
+
# config for pyright
|
|
48
|
+
pyrightconfig.json
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[mypy]
|
|
2
|
+
plugins = pydantic.mypy
|
|
3
|
+
|
|
4
|
+
warn_unused_configs = True
|
|
5
|
+
disallow_any_generics = True
|
|
6
|
+
disallow_subclassing_any = true
|
|
7
|
+
disallow_untyped_calls = True
|
|
8
|
+
disallow_untyped_defs = True
|
|
9
|
+
disallow_incomplete_defs = True
|
|
10
|
+
check_untyped_defs = True
|
|
11
|
+
disallow_untyped_decorators = True
|
|
12
|
+
warn_unused_ignores = True
|
|
13
|
+
warn_redundant_casts = True
|
|
14
|
+
strict_equality = True
|
|
15
|
+
extra_checks = True
|
|
16
|
+
|
|
17
|
+
[mypy-resfo.*]
|
|
18
|
+
ignore_missing_imports = True
|
|
19
|
+
|
|
20
|
+
[mypy-tests.*]
|
|
21
|
+
ignore_errors = True
|
|
22
|
+
|
|
23
|
+
[mypy-hypothesis.*]
|
|
24
|
+
ignore_missing_imports = True
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
default_install_hook_types: [pre-commit]
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
+
rev: v6.0.0
|
|
5
|
+
hooks:
|
|
6
|
+
- id: check-json
|
|
7
|
+
- id: check-yaml
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: trailing-whitespace
|
|
10
|
+
|
|
11
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
12
|
+
rev: 'v1.18.2'
|
|
13
|
+
hooks:
|
|
14
|
+
- id: mypy
|
|
15
|
+
additional_dependencies: [hypothesis, pydantic, scipy-stubs]
|
|
16
|
+
|
|
17
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
18
|
+
rev: v0.12.11
|
|
19
|
+
hooks:
|
|
20
|
+
- id: ruff-check
|
|
21
|
+
args: [ --fix ]
|
|
22
|
+
- id: ruff-format
|
|
23
|
+
|
|
24
|
+
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
25
|
+
rev: 0.8.14
|
|
26
|
+
hooks:
|
|
27
|
+
- id: uv-lock
|
|
28
|
+
|
|
29
|
+
- repo: local
|
|
30
|
+
hooks:
|
|
31
|
+
- id: pytest
|
|
32
|
+
name: pytest
|
|
33
|
+
entry: uv
|
|
34
|
+
args: [run, --all-extras, pytest, --benchmark-disable, tests]
|
|
35
|
+
language: system
|
|
36
|
+
types: [python]
|
|
37
|
+
stages: [pre-push]
|
|
38
|
+
pass_filenames: false
|
|
39
|
+
- id: pytest-doctest
|
|
40
|
+
name: pytest-doctest
|
|
41
|
+
entry: uv
|
|
42
|
+
args: [run, --all-extras, pytest, --doctest-modules, src]
|
|
43
|
+
language: system
|
|
44
|
+
types: [python]
|
|
45
|
+
stages: [pre-push]
|
|
46
|
+
pass_filenames: false
|
|
47
|
+
- id: docs
|
|
48
|
+
name: docs
|
|
49
|
+
entry: uv
|
|
50
|
+
args: [run, --all-extras, sphinx-build, -W, -n, -E, docs/source, docs/output]
|
|
51
|
+
language: system
|
|
52
|
+
stages: [pre-push]
|
|
53
|
+
pass_filenames: false
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
The following is a set of guidelines for contributing to resfo-utilities.
|
|
4
|
+
|
|
5
|
+
## Ground Rules
|
|
6
|
+
|
|
7
|
+
1. We use pre-commit for checking code style
|
|
8
|
+
1. All code must be testable and unit tested.
|
|
9
|
+
|
|
10
|
+
## Commits
|
|
11
|
+
|
|
12
|
+
We strive to keep a consistent and clean git history and all contributions should adhere to the following:
|
|
13
|
+
|
|
14
|
+
1. All tests should pass on all commits(*)
|
|
15
|
+
1. A commit should do one atomic change on the repository
|
|
16
|
+
1. The commit message should be descriptive.
|
|
17
|
+
|
|
18
|
+
We expect commit messages to follow the style described [here](https://chris.beams.io/posts/git-commit/). Also, focus on making clear the reasons why you made the change in the first place—the way things worked before the change (and what was wrong with that), the way they work now, and why you decided to solve it the way you did. A commit body is required for anything except very small changes.
|
|
19
|
+
|
|
20
|
+
(*) Tip for making sure all tests passes, try out --exec while rebasing. You can then have all tests run per commit in a single command.
|
|
21
|
+
## Pull Request Process
|
|
22
|
+
|
|
23
|
+
1. Work on your own fork of the main repo
|
|
24
|
+
1. Push your commits and make a draft pull request using the pull request template.
|
|
25
|
+
1. Check that your pull request passes all tests.
|
|
26
|
+
1. When all tests have passed and your are happy with your changes, change your pull request to "ready for review"
|
|
27
|
+
and ask for a code review.
|
|
28
|
+
1. When your code has been approved—rebase, squash and merge your changes.
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
|
|
2
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
3
|
+
Version 3, 29 June 2007
|
|
4
|
+
|
|
5
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
7
|
+
of this license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
This version of the GNU Lesser General Public License incorporates
|
|
11
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
12
|
+
License, supplemented by the additional permissions listed below.
|
|
13
|
+
|
|
14
|
+
0. Additional Definitions.
|
|
15
|
+
|
|
16
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
17
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
18
|
+
General Public License.
|
|
19
|
+
|
|
20
|
+
"The Library" refers to a covered work governed by this License,
|
|
21
|
+
other than an Application or a Combined Work as defined below.
|
|
22
|
+
|
|
23
|
+
An "Application" is any work that makes use of an interface provided
|
|
24
|
+
by the Library, but which is not otherwise based on the Library.
|
|
25
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
26
|
+
of using an interface provided by the Library.
|
|
27
|
+
|
|
28
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
29
|
+
Application with the Library. The particular version of the Library
|
|
30
|
+
with which the Combined Work was made is also called the "Linked
|
|
31
|
+
Version".
|
|
32
|
+
|
|
33
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
34
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
35
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
36
|
+
based on the Application, and not on the Linked Version.
|
|
37
|
+
|
|
38
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
39
|
+
object code and/or source code for the Application, including any data
|
|
40
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
41
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
42
|
+
|
|
43
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
44
|
+
|
|
45
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
46
|
+
without being bound by section 3 of the GNU GPL.
|
|
47
|
+
|
|
48
|
+
2. Conveying Modified Versions.
|
|
49
|
+
|
|
50
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
51
|
+
facility refers to a function or data to be supplied by an Application
|
|
52
|
+
that uses the facility (other than as an argument passed when the
|
|
53
|
+
facility is invoked), then you may convey a copy of the modified
|
|
54
|
+
version:
|
|
55
|
+
|
|
56
|
+
a) under this License, provided that you make a good faith effort to
|
|
57
|
+
ensure that, in the event an Application does not supply the
|
|
58
|
+
function or data, the facility still operates, and performs
|
|
59
|
+
whatever part of its purpose remains meaningful, or
|
|
60
|
+
|
|
61
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
62
|
+
this License applicable to that copy.
|
|
63
|
+
|
|
64
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
65
|
+
|
|
66
|
+
The object code form of an Application may incorporate material from
|
|
67
|
+
a header file that is part of the Library. You may convey such object
|
|
68
|
+
code under terms of your choice, provided that, if the incorporated
|
|
69
|
+
material is not limited to numerical parameters, data structure
|
|
70
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
71
|
+
(ten or fewer lines in length), you do both of the following:
|
|
72
|
+
|
|
73
|
+
a) Give prominent notice with each copy of the object code that the
|
|
74
|
+
Library is used in it and that the Library and its use are
|
|
75
|
+
covered by this License.
|
|
76
|
+
|
|
77
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
78
|
+
document.
|
|
79
|
+
|
|
80
|
+
4. Combined Works.
|
|
81
|
+
|
|
82
|
+
You may convey a Combined Work under terms of your choice that,
|
|
83
|
+
taken together, effectively do not restrict modification of the
|
|
84
|
+
portions of the Library contained in the Combined Work and reverse
|
|
85
|
+
engineering for debugging such modifications, if you also do each of
|
|
86
|
+
the following:
|
|
87
|
+
|
|
88
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
89
|
+
the Library is used in it and that the Library and its use are
|
|
90
|
+
covered by this License.
|
|
91
|
+
|
|
92
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
93
|
+
document.
|
|
94
|
+
|
|
95
|
+
c) For a Combined Work that displays copyright notices during
|
|
96
|
+
execution, include the copyright notice for the Library among
|
|
97
|
+
these notices, as well as a reference directing the user to the
|
|
98
|
+
copies of the GNU GPL and this license document.
|
|
99
|
+
|
|
100
|
+
d) Do one of the following:
|
|
101
|
+
|
|
102
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
103
|
+
License, and the Corresponding Application Code in a form
|
|
104
|
+
suitable for, and under terms that permit, the user to
|
|
105
|
+
recombine or relink the Application with a modified version of
|
|
106
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
107
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
108
|
+
Corresponding Source.
|
|
109
|
+
|
|
110
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
111
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
112
|
+
a copy of the Library already present on the user's computer
|
|
113
|
+
system, and (b) will operate properly with a modified version
|
|
114
|
+
of the Library that is interface-compatible with the Linked
|
|
115
|
+
Version.
|
|
116
|
+
|
|
117
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
118
|
+
be required to provide such information under section 6 of the
|
|
119
|
+
GNU GPL, and only to the extent that such information is
|
|
120
|
+
necessary to install and execute a modified version of the
|
|
121
|
+
Combined Work produced by recombining or relinking the
|
|
122
|
+
Application with a modified version of the Linked Version. (If
|
|
123
|
+
you use option 4d0, the Installation Information must accompany
|
|
124
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
125
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
126
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
127
|
+
for conveying Corresponding Source.)
|
|
128
|
+
|
|
129
|
+
5. Combined Libraries.
|
|
130
|
+
|
|
131
|
+
You may place library facilities that are a work based on the
|
|
132
|
+
Library side by side in a single library together with other library
|
|
133
|
+
facilities that are not Applications and are not covered by this
|
|
134
|
+
License, and convey such a combined library under terms of your
|
|
135
|
+
choice, if you do both of the following:
|
|
136
|
+
|
|
137
|
+
a) Accompany the combined library with a copy of the same work based
|
|
138
|
+
on the Library, uncombined with any other library facilities,
|
|
139
|
+
conveyed under the terms of this License.
|
|
140
|
+
|
|
141
|
+
b) Give prominent notice with the combined library that part of it
|
|
142
|
+
is a work based on the Library, and explaining where to find the
|
|
143
|
+
accompanying uncombined form of the same work.
|
|
144
|
+
|
|
145
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
146
|
+
|
|
147
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
148
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
149
|
+
versions will be similar in spirit to the present version, but may
|
|
150
|
+
differ in detail to address new problems or concerns.
|
|
151
|
+
|
|
152
|
+
Each version is given a distinguishing version number. If the
|
|
153
|
+
Library as you received it specifies that a certain numbered version
|
|
154
|
+
of the GNU Lesser General Public License "or any later version"
|
|
155
|
+
applies to it, you have the option of following the terms and
|
|
156
|
+
conditions either of that published version or of any later version
|
|
157
|
+
published by the Free Software Foundation. If the Library as you
|
|
158
|
+
received it does not specify a version number of the GNU Lesser
|
|
159
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
160
|
+
General Public License ever published by the Free Software Foundation.
|
|
161
|
+
|
|
162
|
+
If the Library as you received it specifies that a proxy can decide
|
|
163
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
164
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
165
|
+
permanent authorization for you to choose that version for the
|
|
166
|
+
Library.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: resfo-utilities
|
|
3
|
+
Version: 0.3.0b0
|
|
4
|
+
Summary: A utility library for working with the output of reservoir simulators.
|
|
5
|
+
Author-email: Equinor <fg_sib-scout@equinor.com>
|
|
6
|
+
Maintainer-email: Eivind Jahren <ejah@equinor.com>, Håkon Steinkopf Søhoel <hsoho@equinor.com>
|
|
7
|
+
License: LGPL-3.0
|
|
8
|
+
Project-URL: Homepage, https://github.com/equinor/resfo-utilities
|
|
9
|
+
Project-URL: Repository, https://github.com/equinor/resfo-utilities
|
|
10
|
+
Project-URL: Documentation, https://resfo-utilities.readthedocs.io/en/stable/
|
|
11
|
+
Project-URL: Bug Tracker, https://github.com/equinor/resfo-utilities/issues
|
|
12
|
+
Classifier: Development Status :: 1 - Planning
|
|
13
|
+
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Requires-Python: <=3.14,>=3.11
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE.md
|
|
21
|
+
Requires-Dist: numpy
|
|
22
|
+
Requires-Dist: resfo>=5.0.0b1
|
|
23
|
+
Requires-Dist: scipy
|
|
24
|
+
Requires-Dist: natsort
|
|
25
|
+
Provides-Extra: testing
|
|
26
|
+
Requires-Dist: hypothesis; extra == "testing"
|
|
27
|
+
Requires-Dist: pydantic; extra == "testing"
|
|
28
|
+
Provides-Extra: doc
|
|
29
|
+
Requires-Dist: sphinx; extra == "doc"
|
|
30
|
+
Requires-Dist: sphinx-rtd-theme; extra == "doc"
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: pytest; extra == "dev"
|
|
33
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
34
|
+
Requires-Dist: mypy; extra == "dev"
|
|
35
|
+
Requires-Dist: pytest-benchmark; extra == "dev"
|
|
36
|
+
Requires-Dist: scipy-stubs; extra == "dev"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
resfo-utilities
|
|
40
|
+
===============
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
resfo-utilities is a library for working with output from
|
|
44
|
+
several reservoir simulators such as [opm
|
|
45
|
+
flow](https://github.com/OPM/opm-simulators).
|
|
46
|
+
|
|
47
|
+
Installation
|
|
48
|
+
============
|
|
49
|
+
|
|
50
|
+
`pip install resfo-utilities`
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
How to contribute
|
|
54
|
+
=================
|
|
55
|
+
|
|
56
|
+
We use uv to have one synchronized development environment for all packages.
|
|
57
|
+
See [installing uv](https://docs.astral.sh/uv/getting-started/installation/). We
|
|
58
|
+
recommend either installing uv using your systems package manager, or creating
|
|
59
|
+
a small virtual environment you intall base packages into (such as `uv` and `pre-commit`).
|
|
60
|
+
|
|
61
|
+
Once uv is installed, you can get a development environment by running:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
git clone https://github.com/equinor/resfo-utilities
|
|
65
|
+
cd resfo-utilities
|
|
66
|
+
uv sync --all-extras
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
You should set up `pre-commit` to ensure style checks are done as you commit:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
uv run pre-commit install --hook-type pre-push
|
|
74
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
resfo-utilities
|
|
2
|
+
===============
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
resfo-utilities is a library for working with output from
|
|
6
|
+
several reservoir simulators such as [opm
|
|
7
|
+
flow](https://github.com/OPM/opm-simulators).
|
|
8
|
+
|
|
9
|
+
Installation
|
|
10
|
+
============
|
|
11
|
+
|
|
12
|
+
`pip install resfo-utilities`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
How to contribute
|
|
16
|
+
=================
|
|
17
|
+
|
|
18
|
+
We use uv to have one synchronized development environment for all packages.
|
|
19
|
+
See [installing uv](https://docs.astral.sh/uv/getting-started/installation/). We
|
|
20
|
+
recommend either installing uv using your systems package manager, or creating
|
|
21
|
+
a small virtual environment you intall base packages into (such as `uv` and `pre-commit`).
|
|
22
|
+
|
|
23
|
+
Once uv is installed, you can get a development environment by running:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
git clone https://github.com/equinor/resfo-utilities
|
|
27
|
+
cd resfo-utilities
|
|
28
|
+
uv sync --all-extras
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
You should set up `pre-commit` to ensure style checks are done as you commit:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
uv run pre-commit install --hook-type pre-push
|
|
36
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
If you discover a security vulnerability in this project, please follow these steps to responsibly disclose it:
|
|
2
|
+
|
|
3
|
+
1. **Do not** create a public GitHub issue for the vulnerability.
|
|
4
|
+
2. Follow our guideline for Responsible Disclosure Policy at [https://www.equinor.com/about-us/csirt](https://www.equinor.com/about-us/csirt) to report the issue
|
|
5
|
+
|
|
6
|
+
The following information will help us triage your report more quickly:
|
|
7
|
+
|
|
8
|
+
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
|
9
|
+
- Full paths of source file(s) related to the manifestation of the issue
|
|
10
|
+
- The location of the affected source code (tag/branch/commit or direct URL)
|
|
11
|
+
- Any special configuration required to reproduce the issue
|
|
12
|
+
- Step-by-step instructions to reproduce the issue
|
|
13
|
+
- Proof-of-concept or exploit code (if possible)
|
|
14
|
+
- Impact of the issue, including how an attacker might exploit the issue
|
|
15
|
+
|
|
16
|
+
We prefer all communications to be in English.
|