Commit Graph

92 Commits

Author SHA1 Message Date
Arne Morten Kvarving
4d5a67fa82 added: ability to pass command line parameters from python 2024-11-28 09:14:53 +01:00
Arne Morten Kvarving
1dd66769cd
Merge pull request #5722 from blattms/bugfix/pyhon-licensing
Added the missing plus in gplv3+ for the Python packages.
2024-11-08 12:30:56 +01:00
Markus Blatt
0629a83266 Added the missing plus in gplv3+ for the Python packages. 2024-11-08 12:25:17 +01:00
Arne Morten Kvarving
5085877d4e fixed: building pypi release packages 2024-11-07 12:01:03 +01:00
Arne Morten Kvarving
bfc5d6f742 small adjustments to python packaging 2024-10-03 13:13:52 +02:00
Arne Morten Kvarving
2353ba56a6 changed: don't store schedule keywords unless required in simulators
in the python simulator we cannot make this decision up front
since the schedule can be modified from python code so we have
to do the safe thing
2024-09-27 11:24:20 +02:00
Bård Skaflestad
03795d5b23
Merge pull request #5588 from akva2/move_python_initialization_function
Move python initialization function
2024-09-09 14:54:14 +02:00
Arne Morten Kvarving
2a9d81227b changed: subclass Main for python
move the initFlowBlackoil method into it

in particular we then avoid the FlowMainType type alias
in Main.hpp
2024-09-09 14:28:20 +02:00
Arne Morten Kvarving
8ed1149252 fix python package versioning
remove opm-models cloning
build both bindings in one build directory
2024-09-09 12:45:00 +02:00
Arne Morten Kvarving
a78337fc33 fixed: make python simulator object depend on copy_python
if not building just the python binding won't end up in
a complete build
2024-09-02 08:21:36 +02:00
Arne Morten Kvarving
ed11ba604d
Merge pull request #5567 from akva2/add_python_packaging
add python packaging fluff
2024-08-30 17:04:11 +02:00
Arne Morten Kvarving
0203f74b3f add python packaging fluff 2024-08-30 14:28:25 +02:00
hnil
6609d9fbcb changed references 2024-08-29 11:19:29 +02:00
hnil
5c0176371c -- fixed reference 2024-08-28 13:27:46 +02:00
Tor Harald Sandve
8e490e9b3f relax python tests slightly 2024-08-16 10:18:50 +02:00
Lisa Julia Nebel
13e3cd590c Fix typos and test the automatic deployment to opm-python-documentation 2024-07-25 19:34:17 +02:00
Markus Blatt
c243620057
Merge pull request #5474 from lisajulia/feature/add-failureFlag-to-tasklets
Remove UNIFOUT keyword from python test data file SPE1CASE1.DATA
2024-07-12 13:13:47 +02:00
Lisa Julia Nebel
42d79ebb97 Delete almost everything of the documentation here, this will be done in a separate repository opm-python-documentation
Keep only the file docstrings.json (renamed to docstrings_simulators.json)
2024-07-10 18:02:41 +02:00
Lisa Julia Nebel
b4ee039f07 Remove UNIFOUT keyword from python test data file SPE1CASE1b/SPE1CASE1.DATA file as well
... just in case
2024-07-09 17:27:50 +02:00
Lisa Julia Nebel
e9d3d81ae2 Remove UNIFOUT keyword from python test data file SPE1CASE1a/SPE1CASE1.DATA
With this keyword, the SPE1CASE1.UNRST file could not be read in correctly at some point, until I've added a check in opm-models that checks this, this went unnoticed probably.
2024-07-09 17:27:43 +02:00
Lisa Julia Nebel
fa3392fb7d Use generate_docstring_hpp.py of opm-common and delete the one here 2024-07-09 13:52:01 +02:00
Arne Morten Kvarving
b55cc972c2
Merge pull request #5459 from OPM/dependabot/pip/python/sphinx_docs/requests-2.32.2
Bump requests from 2.31.0 to 2.32.2 in /python/sphinx_docs
2024-07-01 13:40:48 +02:00
Arne Morten Kvarving
ae6e58a468
Merge pull request #5458 from OPM/dependabot/pip/python/sphinx_docs/idna-3.7
Bump idna from 3.6 to 3.7 in /python/sphinx_docs
2024-07-01 13:40:24 +02:00
Arne Morten Kvarving
1f92effa27
Merge pull request #5456 from OPM/dependabot/pip/python/sphinx_docs/jinja2-3.1.4
Bump jinja2 from 3.1.3 to 3.1.4 in /python/sphinx_docs
2024-07-01 13:39:57 +02:00
dependabot[bot]
027818b09a
Bump requests from 2.31.0 to 2.32.2 in /python/sphinx_docs
Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.2.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.31.0...v2.32.2)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 11:36:22 +00:00
dependabot[bot]
ccb85f17e0
Bump idna from 3.6 to 3.7 in /python/sphinx_docs
Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 11:36:18 +00:00
dependabot[bot]
fe1e86bf5c
Bump jinja2 from 3.1.3 to 3.1.4 in /python/sphinx_docs
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 11:36:17 +00:00
dependabot[bot]
e946bfe55b
Bump urllib3 from 2.2.1 to 2.2.2 in /python/sphinx_docs
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 11:36:17 +00:00
Arne Morten Kvarving
5d3f4115f2
Merge pull request #5243 from hakonhagland/sphinx_gha
Add sphinx documentation for Python bindings and GitHub action workflow to push to GitHub pages
2024-07-01 13:35:19 +02:00
Kai Bao
027c3ba0fc using one day time step for SPE1CASE1a/SPE1CASE1.DATA
to avoid time stepping change causes test failures for the python tests
2024-06-19 13:42:55 +02:00
Håkon Hægland
a6c28ea85a Use the module sphinx-versioned-docs
Use the Python module sphinx-versioned-docs to get versioned docs.
Currently, there is only a version for the HEAD of the master branch
but release versions can be added later by specifying a release tag.
2024-05-14 09:00:58 +02:00
Håkon Hægland
34f93e2198 Dynamically extract sphinx documentation release version.
Dynamically extract sphinx documentation release version from
dune.module version.
2024-05-14 09:00:58 +02:00
Håkon Hægland
566a844fef Added sphinx documentation for Python bindings
Added sphinx documentation for the opm.simulators.BlackOilSimulator
Python module. Added GitHub action workflow to deploy sphinx
documentation to GitHub Pages.
2024-05-14 09:00:52 +02:00
Håkon Hægland
6c3f3af4b4 Docstring fixes 2024-05-02 11:24:58 +02:00
Håkon Hægland
a1b7d4b5dd Allow Python bindings to setup MPI
Allows the Python bindings to control whether MPI_Init() and
MPI_Finalize() will be called when creating an OPM::Main object.
2024-05-02 11:14:07 +02:00
Arne Morten Kvarving
3475da7d8c Rename ebos_simulator members/parameters to simulator 2024-03-06 10:53:00 +01:00
Arne Morten Kvarving
d5748b6c55 Drop ebos in function names 2024-03-06 10:13:01 +01:00
Håkon Hægland
8cbb1707e7 Move statements to after target is defined 2024-03-05 11:11:53 +01:00
Håkon Hægland
1c5143f02e Improve CMakeLists.txt
Add the generated .hpp file directly to pybind11 sources instead of
creating a custom target.
2024-03-05 10:48:04 +01:00
Håkon Hægland
e20faa255c Add docstrings for Python bindings 2024-03-05 10:18:54 +01:00
Håkon Hægland
757c67f284 Return vectors by value
Return vectors by value instead of unique pointers to arrays.
2024-03-01 14:22:37 +01:00
Håkon Hægland
55aab60549 Get primary variables and fluid state from Python
Added methods to Python module opm.simulators.BlackOilSimulator to
access primary variables and fluid state variables.
2024-03-01 14:22:35 +01:00
Arne Morten Kvarving
f8b22631b0 fixed: don't link python module to flow_libblackoil
this leads to ODR violations which causes all sorts
of havoc. this was done to reuse a trivial method,
duplicate it in the python source instead.
2024-02-29 09:24:07 +01:00
Arne Morten Kvarving
4aa6dc355f rename TTag::EclFlowProblemTPFA to TTag::FlowProblemTPFA 2024-02-23 09:27:48 +01:00
Arne Morten Kvarving
b09c70213b FlowMainEbos: rename to FlowMain 2024-02-06 10:42:23 +01:00
Arne Morten Kvarving
9c38f01997 changed: vendor pybind11 using FetchContent 2023-11-16 10:02:04 +01:00
Tor Harald Sandve
968686e7e0
Merge pull request #4943 from hakonhagland/pybind3
Get simulator time step size from Python BlackOilSimulator module
2023-10-26 11:28:42 +02:00
Tor Harald Sandve
922fa5b9bf
Merge pull request #4853 from hakonhagland/pybind2
Get cell volumes from Python
2023-10-24 13:56:58 +02:00
Håkon Hægland
8849c7d357 Removed reference to unit system
The unit system is not used in this example, so we can remove it.
2023-09-25 11:01:12 +02:00
Håkon Hægland
9778929a81 Added some Python documentation 2023-09-25 10:18:13 +02:00