Commit Graph

45 Commits

Author SHA1 Message Date
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
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
Pål Grønås Drange
2b9691e62c Remove redundant parameter 2017-10-17 22:15:44 +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
Jens Gåsemyr Magnus
2cfdfc8b98 Added support for reading Deck data 2017-09-21 10:30:14 +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
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
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
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
dd56505825 added getCellVolume on sunbeam.grid 2017-03-31 12:19:39 +02:00
Pål Grønås Drange
1ed4517d65 implemented table lookup for eclipse_state 2017-02-17 15:07:09 +01:00
Pål Grønås Drange
d966376562 added basic tables support, and cornerpoint test data (#27)
* added basic tables support, and cornerpoint test data
2017-02-16 15:43:59 +01:00
Pål Grønås Drange
0d8610ad04 JFunc now returns dict (#25)
made jfunc return dict
2017-02-05 10:41:28 +01:00
Joakim Hove
8e5d3149c0 Add install( ) of libsunbeam. 2017-02-04 13:43:07 +01:00
Pål Grønås Drange
e2485b0c22 Jfunc (#24)
jfunc support
2017-02-03 11:31:22 +01:00
Pål Grønås Drange
42fc9b27d1 added faults 2017-01-13 14:30:07 +01:00
Pål Grønås Drange
39fa96b02f added some config classes, refactored out files 2017-01-13 12:52:50 +01:00
Pål Grønås Drange
afb28c00c2 added basic completions support 2017-01-12 17:17:01 +01:00
Pål Grønås Drange
dc293f9ec6 Made EclipseGrid type with tests 2017-01-12 12:54:21 +01:00
Pål Grønås Drange
bdb579b8db added parseData and test 2017-01-12 12:54:21 +01:00
Pål Grønås Drange
f26bc01f54 added griddims accessors 2017-01-11 16:53:52 +01:00
Pål Grønås Drange
f70793129d Added e3Dprops w regs, state.nnc and fixed comment 2017-01-11 12:42:38 +01:00
Pål Grønås Drange
15362a145e repr for state, schedule, well 2017-01-09 15:41:52 +01:00
Jørgen Kvalsvik
c2d4372a1e Well status functions 2016-12-18 10:51:17 +01:00
Jørgen Kvalsvik
3876d67a96 Schedule.groups support 2016-12-18 10:30:57 +01:00
Jørgen Kvalsvik
a96a1317b0 Group disambiguations and massagers in namespaces 2016-12-17 13:04:10 +01:00
Jørgen Kvalsvik
c1bfade15f Split out converters in separate file. 2016-12-17 12:46:25 +01:00
Jørgen Kvalsvik
d3618225f0 KeyError exception translator; schedule.getitem 2016-12-17 12:10:14 +01:00
Jørgen Kvalsvik
b655f2d178 Get groups 2016-12-16 16:38:24 +01:00
Jørgen Kvalsvik
0f59ab1755 Allow delegate-decorated class constructors 2016-12-16 16:38:09 +01:00
Jørgen Kvalsvik
b33190d30c Schedule.timesteps 2016-12-11 16:11:50 +01:00
Jørgen Kvalsvik
6426407d9b Schedule.start and Schedule.end 2016-12-11 13:00:00 +01:00
Jørgen Kvalsvik
9110164aa1 Preferred phase, group control+name, guide rate 2016-12-11 12:09:20 +01:00
Jørgen Kvalsvik
d669187eea Well.status 2016-12-11 11:45:36 +01:00
Jørgen Kvalsvik
bd3fae1b83 Richer Schedule; name property for Well. 2016-12-11 01:18:51 +01:00
Jørgen Kvalsvik
b2b5c471c1 Free functions on Well for filtering purposes 2016-12-11 01:16:55 +01:00
Jørgen Kvalsvik
f82990404f Schedule.contains and file for Schedule tests 2016-12-09 15:51:29 +01:00
Jørgen Kvalsvik
463659047e Primitive well support; delegate decorator
Some primitive Well support, and the needed classes to get a well from a
deck.

In an effort to reduce boilerplate, the delegate decorator is
introduced. Delegated classes from sunbeam.py can wrap around the python
classes generated by boost and augment their interface, but leverage the
original C++-object as its storage. Methods defined on the immediate
python objects bubble up.
2016-12-05 09:55:13 +01:00
Jørgen Kvalsvik
321ef1d194 Support for parsecontext config 2016-12-01 16:11:47 +01:00
Jørgen Kvalsvik
25a3007a1e Move C++ source to python/, trivial bindings 2016-12-01 16:11:47 +01:00
Jørgen Kvalsvik
c156eea300 Module for python cmake files; test template
Adds the pycmake makefile dependency and provides a submodule for build
convenience. Adds the SPE3CASE1 test case for some simple test writing
and a test template file.

Sets up python library structure.
2016-12-01 15:52:09 +01:00
Pål Grønås Drange
c4c8eaf887 initial travis support 2016-11-24 10:04:50 +01:00
Pål Grønås Drange
769a0eef8a Added FindPythonModule (pycmake) and init cmake 2016-11-21 12:04:27 +01:00