Arne Morten Kvarving
ae10af208f
changed: hide the templated 'has' and 'get' interfaces in FieldPropsManager
...
motivation: an upcoming parallel frontend to the field props manager.
templated functions cannot be virtualized, and thus having these exposed
would give a great chance of confusing the users in the downstream
code, where properties would be caught from the (potentially) empty
backend instead of from the frontend.
2020-01-28 14:31:25 +01:00
Joakim Hove
691296f91a
Remove old 3D property implementation
2020-01-19 23:04:46 +01:00
Joakim Hove
ecb5fce19b
Only active cells ( #1298 )
...
Use FieldProps implementation for 3D properties
2020-01-13 15:46:06 +01:00
Joakim Hove
b9c3df5f42
Add has_xxx and __contains__ to Python SummaryState
2020-01-13 11:43:58 +01:00
Joakim Hove
67f95e8548
Add Schedule::xxx_well() for well status manipulations from Python
2020-01-11 06:54:25 +01:00
Torbjørn Skille
4136868592
additional python bindings for eclipse_grid
2020-01-06 17:43:32 +01:00
Joakim Hove
b7fcded7ef
Merge pull request #1378 from joakim-hove/wrap-summarystate
...
python wrapper for summarystate
2020-01-02 20:54:48 +01:00
Joakim Hove
20c5a2b50e
python wrapper for summarystate
2019-12-27 10:08:46 +01:00
Joakim Hove
a2def0ea5b
Merge pull request #1372 from stefoss23/python_field_props
...
Python: added class FieldProperties.
2019-12-23 23:06:05 +01:00
Steinar Foss
d3a4b536d2
python FieldProperties can return numpy double arrays.
2019-12-23 11:35:52 +01:00
Steinar Foss
d6c1d64ba0
Python: added class FieldProperties.
...
test_props.py: added check for 3d_properties/field_props extraction.
cxx/eclipse_state.cpp: adding function field_props.
added python class FieldProperties.
python FieldProps: added __contains__.
python FieldProps: added __getitem__.
python field_props: images all 3dprops tests.
2019-12-22 15:25:16 +01:00
Joakim Hove
465b2b6a1d
Add Python methods DeckItem.has_value() and DeckItem.defaulted()
2019-12-19 15:22:16 +01:00
Joakim Hove
378d5c120b
Remove trailing whitespace
2019-12-19 15:20:15 +01:00
Arne Morten Kvarving
0d6ed7cfb6
changed: rename accessor to data()
...
the two classes EDITNNC and NNC are very similar, which makes templating
useful. this small difference makes it hard to do. unify them.
2019-11-26 13:20:17 +01:00
Joakim Hove
6dbbc8c037
Remove / rename DeckItem::size()
2019-11-16 18:31:12 +01:00
Joakim Hove
613ec70dab
Rename Well2 -> Well and Group2 -> Group
2019-11-13 23:19:26 +01:00
Joakim Hove
d66852d8de
Rewrite EclFile wrapping
...
- Include the eclipse_io.cpp file in existing extension library - do not create
a new library.
- Remove Python class EclFile - just expose the C++ through Pybind1, include
some monkey-patching of the class to ensure proper Python strings for CHAR
keywords.
- Remove string based keyword lookup.
- Use standard Python methods __len__, __getitem__ and __contains__; get() is
an equivalent alternative to __getitem__().
- Add property arrays in addition to getListOfArrays()
2019-11-06 09:59:07 +01:00
Joakim Hove
179be0d519
Add converter to convert CHAR arrays
2019-11-06 09:59:07 +01:00
Joakim Hove
438a71de1c
Remove unused includes
2019-11-06 09:59:07 +01:00
Torbjørn Skille
7cacc734e8
python binding for EclFile
2019-11-06 09:59:07 +01:00
Steinar Foss
576ddd4987
python deck: added member add(keyword).
2019-10-25 14:11:52 +02:00
Steinar Foss
02cc292f38
python numpy array conversion function in namespace conv ert.
2019-10-25 11:06:12 +02:00
Steinar Foss
ce3781775f
DeckKeyword w/ vectors: takes unit system as arg.
...
DeckKeyword w/ vector: added unit as arg.
DeckKeyword vector works with units.
DecValuetests: use zcorn instead of poro.
python: deckkweyword works with int data.
...
python deckkeyword. cant init with double array.
moved numpy_array converters to converters.hpp.
2019-10-25 09:31:03 +02:00
Steinar Foss
d05b3323b3
DeckKeyword: constr. with records takes unitsystem args.
...
Deckkeyword constr w/ records also takes unit_systems.
DeckKeyword w/ records uses input args to get dims.
DeckValue unit system works w/ records.
Deckkeyword w/ records: rearranged default/active unit args.
..
python deckkeywords: workable.
python deckkeyword: testing rewrite.
python deckkeyword w/units: most test work.
...
python support for deckkeyword w/ dimensions.
2019-10-24 07:13:31 +02:00
Joakim Hove
e7e25beea5
Use const& to avoiw warnings
2019-10-18 08:34:12 +02:00
Joakim Hove
0c50d96ed0
Remove trailing whitespace
2019-10-18 08:32:49 +02:00
Steinar Foss
fe8692f623
schedule.cpp: removed unused function.
2019-10-16 14:20:16 +02:00
Steinar Foss
0e5c14568e
removed common_state.
2019-10-16 13:59:00 +02:00
Steinar Foss
a2a016951f
python unit_system name.
2019-10-13 22:53:56 +02:00
Steinar Foss
a177d3b887
python/cxx/export.hpp: rearranged UnitSystem position.
2019-10-11 22:40:35 +02:00
Steinar Foss
c0bd19c59e
python: added class UnitSystem.
2019-10-11 22:02:54 +02:00
Joakim Hove
9af248f889
Merge pull request #1072 from stefoss23/python_deck_values
...
python: new DeckKeyword constructor takes DeckRecords
2019-10-11 10:57:14 +02:00
Steinar Foss
ad564ad651
python connection: exposed directly via pybind11.
...
python connection. added property pos.
removed shedule.py.
test_connection.py passed.
test_wells.py: test_completion passes.
removed opm.io.config.
renamed test_state2.py -> test_state.py.
2019-10-10 12:54:40 +02:00
Steinar Foss
3bce48586a
Python: DeckKeyword: can accept DeckValues( parserkw, [["5*$VALUE"]])
...
python : deckkeyword accepts 5*.
...
2019-10-08 11:04:15 +02:00
Steinar Foss
7555c00ac3
python DeckKeyword constr. resolved nested try blocks.
...
...
2019-10-06 19:17:14 +02:00
Steinar Foss
6865278ac5
pyhon DeckKeyword: New constructor takes parserkeyword and list of records.
...
python Deckkeyword: can init with empty records.
python Deckkeyword: can record simple records, but not defaults.
python deckvalue: can take defauløt values.
2019-10-04 21:07:06 +02:00
Steinar Foss
11d1c7d634
python: DeckKeyword constructor, w/ ParserKeyword arg.
...
parserkeyword can create deckkeyword.
python parserkeyword: removed create_deckkeyword.
DeckKeyword: member parser_keyword is shared_ptr.
python DeckKeyword constructor.
python: no exposure of ParserKeyword.
DeckKeyword: shared_ptr<ParserKeyword> -> ParskerKeyword.
python/cxx/deck_keyword.cpp: cosntructor takes arg const ParskerKeyword&.
test_parser.py: simplified test_pyinut.
...
2019-09-23 23:27:03 +02:00
Joakim Hove
69ddffc966
Expose C++ objects to Python runtime
2019-09-23 21:31:45 +02:00
Joakim Hove
230c4494ed
Add Python wrapping for OpmLog
2019-09-23 14:35:25 +02:00
Steinar Foss
dd4cce4e9a
python: removed group_tree.
2019-09-21 11:52:44 +02:00
Steinar Foss
0bc150794d
python: Schedule bound directly by pybind11.
...
python: exposes Schedule.
python: added constructor for Schedule.
test_schedule: reintroduced most tests.
python test_schedule: all test works.
python test_wells. opened up some tests.
test_wells: opened up most.
test_wells.py ok.
2019-09-21 11:53:29 +02:00
Steinar Foss
b68fe2e63a
test_state2: added test_config.
2019-09-13 16:17:35 +02:00
Steinar Foss
c826e24607
test_props: uncommented tests.
2019-09-13 16:17:35 +02:00
Steinar Foss
78ab86e2a3
test_state2.py: added test_tables.
2019-09-13 16:17:35 +02:00
Steinar Foss
0ae8c4b235
python grid: properties as small cap.
2019-09-13 16:17:35 +02:00
Steinar Foss
3ecb446c20
test_state2: added test_simulation.
2019-09-13 16:17:35 +02:00
Steinar Foss
97728e9fda
test_state2.py: added test_grid.
2019-09-13 16:17:35 +02:00
Steinar Foss
fcca1fa823
python EclipseState: added constructor.
2019-09-13 16:17:35 +02:00
Joakim Hove
d2ff536cf3
Renamed python/cxx/common -> python/cxx/export
2019-09-13 09:40:13 +02:00
Joakim Hove
f264c358e7
Placed the Python cxx wrapping in namespace python::common
2019-09-13 09:22:49 +02:00