Commit Graph

125 Commits

Author SHA1 Message Date
Pål Grønås Drange
86215b69a1 Merge pull request #58 from joakim-hove/use-pybind11
Use pybind11
2018-02-09 12:18:09 +01:00
Joakim Hove
c708381f52 Update travis to use pyenv 2018-02-08 18:53:15 +01:00
Joakim Hove
5eed642924 Fix testing of times:
- The first seven timesteps were specified as steps of length 365/7.0 days,
   when converted to seconds one second was lost due to rounding. This has been
   changed by using integer length TSTEP.

 - assertEqual() statements use full datetime; which has been shifted one full
   day forward to account for rounding errors due to the lost seconds.

 - EclipseState.getFirstRestartStep( ) is changed because we have configured to
   get restart data for the first report step every year, and that is now step 7
   instead of step 8.
2018-02-08 18:53:15 +01:00
Joakim Hove
67b30fe715 Use pybind11 as binding framework
This commit changes the api for the Schedule class, the various time related
methods now return datetime.datetime instances instead of datetime.data.
2018-02-08 18:53:15 +01:00
Joakim Hove
1566cd4e37 Change to pointer semantics in return value.
This change has been necessary to avoid premature destruction of the EclipseState
object.
2018-02-08 18:53:15 +01:00
Joakim Hove
2318c7cea4 Add pybind11 as git submodule 2018-02-08 18:35:53 +01:00
Joakim Hove
b5336fb128 Add if __name__ == "__main__" to all tests. 2018-02-08 18:35:47 +01:00
Joakim Hove
54f66af2bd Merge pull request #57 from joakim-hove/test-callable
Added if __name__ == "__main__" to test module.
2017-12-11 13:53:53 +01:00
Joakim Hove
6f6cdbc1dc Added if __name__ == "__main__" to test module. 2017-12-11 12:57:22 +01:00
Pål Grønås Drange
ffe2babdd9 Merge pull request #55 from joakim-hove/class-setup
Class setup
2017-12-06 18:01:27 +01:00
Joakim Hove
5d13eddfc8 Use setUpClass() method instead of class member variable. 2017-12-06 17:31:57 +01:00
Joakim Hove
e2a66f2bfe Using per test instance of EclipseState 2017-12-06 17:11:24 +01:00
Jens Gåsemyr Magnus
524af0dcf0 Extend Completion class implementation (#54)
* Extend Completion class implementation

Added access to several variables from the completion class. The Well
interface has been changed so that completions for any timestep can be
accessed rather than just the last.

* Bump version to 0.0.3

* Removed single space
2017-12-05 17:48:07 +01:00
abramb
69f74c858a Update the address of the submodule
The previous setting was correct, but was a bit of a problem cloning on
the linux laptop. Because of an issue with the VPN and SSH (ask Kjell
for the details), repos with git: must be cloned with the VPN off, while
repos with https: require the VPN to be on. After this change, both
sunbeam and pycmake can be cloned with the VPN off (now you can do git
clone --recursive)
2017-11-10 17:58:44 +01:00
Andrea Brambilla
d89412e238 Workaround for missing import in Equil.hpp in opm-parser 2017.10/final 2017-11-06 15:25:34 +01:00
Andrea Brambilla
c5fc5a0120 Make sunbeam compatible with opm-parser 2017.10 2017-11-06 15:25:34 +01:00
Joakim Hove
02f41b0524 Merge pull request #49 from pgdr/minor-cleanup
Remove redundant parameter
2017-10-18 08:29:26 +02:00
Pål Grønås Drange
2b9691e62c Remove redundant parameter 2017-10-17 22:15:44 +02:00
Pål Grønås Drange
800a06c253 Merge pull request #48 from joakim-hove/opm-parser-tag
Added tag instructions to Sunbeam readme.
2017-10-16 14:59:23 +02:00
Joakim Hove
490a0ac15c Use tag sunbeam-2017.10 when building opm-parser. 2017-10-16 12:12:29 +02:00
JensGM
2823c0672a Merge pull request #44 from JensGM/pydoc
Pydoc for user facing parse functions and rename action to recovery in user facing parse functions
2017-10-09 10:16:21 +02:00
Jens Gåsemyr Magnus
a1424cc2fa Pydoc for user facing parse functions
Rename action to recovery

Changed the name of actions to recoveries in the user facing parse
functions. Updated tests to reflect this.
2017-10-09 10:07:26 +02:00
Pål Grønås Drange
b21d3e84c4 Expose grouptree ultimate (#47) 2017-10-03 20:18:29 +02:00
Pål Grønås Drange
501235485f Merge pull request #46 from ReedOnly/update_ecl_conf
Build sunbeam with previous commit of OPM-parser
2017-10-03 18:24:54 +02:00
ReedMe
b15ab2dd01 Build sunbeam with previous commit of OPM-parser
8d202adefd
2017-10-03 17:06:33 +02:00
Joakim Hove
eaee5429df Merge pull request #42 from JensGM/expose-deck-data
Added support for reading Deck data
2017-09-22 09:04:58 +02:00
Jens Gåsemyr Magnus
2cfdfc8b98 Added support for reading Deck data 2017-09-21 10:30:14 +02:00
JensGM
56f326eec8 Merge pull request #43 from JensGM/forward-cpp-docstrings
Forward docstrings from C++
2017-09-15 14:34:36 +02:00
Jens Gåsemyr Magnus
fc594faaa4 Forward docstrings from C++
Some of the user facing functions and methods in sunbeam have no
implementation in the python-defined classes, but are forwarded from
boost python. This forwarding is done by hijacking the method call at
runtime, which means that python help() cannot resolve the docstring.

Copy the docstring into the hijacking attribute so that the docstring is
available as if the method/function was implemented directly in python.

help(eclipse_state_object) will now correcly forward the docstrings from
the forwarded EclipseState class.
2017-09-14 16:56:38 +02:00
Joakim Hove
4be3d3ccd2 Merge pull request #39 from JensGM/expose-deck
WIP: Expose deck features
2017-09-11 14:50:49 +02:00
Jens Gåsemyr Magnus
0ab722902d Combined header files to a single header file 2017-09-07 14:41:31 +02:00
Jens Gåsemyr Magnus
e1d860506a Started exposing deck 2017-09-07 12:36:10 +02:00
Jens Gåsemyr Magnus
11fe32df4f Add support for dynamic parser extensions
Sunbeam can now be used to parse eclipse files to deck representations.
Added support for dynamic parser extensions which can be used to handle
unsupported eclipse keywords when parsing to deck representations.

Fixed missing function declarations
2017-09-05 13:24:06 +02:00
Joakim Hove
9acb937361 Merge pull request #38 from ReedOnly/split-sunbeam-cpp
Split sunbeam cpp
2017-09-04 17:33:34 +02:00
Jens Gåsemyr Magnus
8f89b598f4 Split sunbeam.cpp
Split file in order to enhance c++ source file structure
2017-09-04 15:40:22 +02:00
Joakim Hove
79b9f66609 Merge pull request #35 from JensGM/separate-cpp-and-python
Separated C++ and python source files
2017-09-01 18:36:47 +02:00
Jens Gåsemyr Magnus
e92bd4bd36 Separated C++ and python source files
Separating the C++ and python source files to make the repository more
structures as we will create additional C++ source files.
2017-09-01 10:17:57 +02:00
Joakim Hove
4f2a8f8651 Merge pull request #33 from joakim-hove/use-rpath
Optionally enable RPATH in top level cmake file.
2017-08-30 13:51:08 +02:00
Joakim Hove
132ed34fa3 Travis will install and test using RPATH. 2017-08-29 09:42:15 +02:00
Joakim Hove
287834134c Using CMAKE_PREFIX:PATH in .travis.yml 2017-08-29 09:40:54 +02:00
Joakim Hove
4982f0fd61 Optionally enable RPATH in top level cmake file. 2017-08-28 23:15:19 +02:00
Pål Grønås Drange
4607224642 Merge pull request #32 from pgdr/parser-timemap-api-change
Adapt to change in schedule.getTimeMap in opm-parser
2017-08-18 09:44:46 +02:00
Pål Grønås Drange
163af49d18 Fix readme & travis with libecl, remove opm-common 2017-08-18 09:33:36 +02:00
Pål Grønås Drange
d5efa529ab Adapt to change in schedule.getTimeMap in opm-parser 2017-08-11 12:48:49 +02:00
Pål Grønås Drange
1959bce335 Merge pull request #31 from pgdr/add-norne
Add norne
2017-05-16 15:44:05 +02:00
Pål Grønås Drange
875c4efa8c added figures in examples 2017-05-16 13:54:04 +02:00
Pål Grønås Drange
1615417bd6 added norne integration-style test 2017-05-16 13:54:04 +02:00
Pål Grønås Drange
0e5fb1e0e0 added norne data files 2017-05-16 09:36:12 +02:00
Pål Grønås Drange
836098e6a8 Merge pull request #30 from pgdr/cell_vol
added getCellVolume on sunbeam.grid
2017-03-31 12:36:49 +02:00
Pål Grønås Drange
dd56505825 added getCellVolume on sunbeam.grid 2017-03-31 12:19:39 +02:00