Joakim Hove
99e32edd78
Use try: except: to import test utility code
2019-10-28 20:30:39 +01:00
Joakim Hove
390a29d425
Merge pull request #1164 from stefoss23/deckkeyword_vector_unit
...
DeckKeyword w/ vectors: takes numpy vectors.
2019-10-25 12:07:34 +02:00
Joakim Hove
e51b14f6fd
Use utility function for path to testdata
2019-10-25 09:57:38 +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
Joakim Hove
2fb3ce4957
Add if __name__ == "__main__" in Python test
2019-10-25 09:14:25 +02:00
Joakim Hove
622409bfb6
White space change
2019-10-25 09:14:15 +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
Steinar Foss
1a8e9979d8
BOX keyword: using defaultApplied.
...
moved failed box-test from python to cpp.
setKeywordBox: using defaultApplied rather than hasvalue.
EclipseStateTEsts. TextBox: use 1* instead of *.
corrected box_bug.
2019-10-23 15:47:25 +02:00
Joakim Hove
2c6d1e0e37
Use absolute import for test util
2019-10-15 00:39:13 +02:00
Steinar Foss
a2a016951f
python unit_system name.
2019-10-13 22:53:56 +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
0e1339e648
removed all test suppoert for parser_module.py.
2019-10-10 12:54:22 +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
223fe5e7df
python: rewrite of tests using ParseContext.
...
test_state: recalled slash test and made it work.
...
test_parse_deck ok.
2019-10-08 17:30:56 +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
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
883fb1a337
Merge pull request #1034 from stefoss23/python_replace_schedule
...
Python replace schedule
2019-09-23 14:22:35 +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
Joakim Hove
f7a434f274
Do not import ParserKeyword in Python
2019-09-21 07:31:03 +02:00
Steinar Foss
b957ca6a69
opm.io.ecl_state: unexposes constructor free classes.
2019-09-13 16:17:35 +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
41a05a7a98
test_state.py: uncommented test_summary.
2019-09-13 16:17:35 +02:00
Steinar Foss
4504b8812f
test_state2. added function test_jfunc.
2019-09-13 16:17:35 +02:00
Steinar Foss
365fbd355b
test_state2: added test_faults.
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
af096fddf9
test_state2: added test_state_nnc.
2019-09-13 16:17:35 +02:00
Steinar Foss
0257528ea9
test_state2: added test_repr_title.
2019-09-13 16:17:35 +02:00
Steinar Foss
fcca1fa823
python EclipseState: added constructor.
2019-09-13 16:17:35 +02:00
Steinar Foss
7fc7a8f0ba
python class Sunbeamstate: remove state.
2019-09-13 16:17:35 +02:00
Steinar Foss
b97503d34d
exposed class TableManager as Tables.
2019-09-13 16:17:35 +02:00
Steinar Foss
c01d3b0139
propertes.py: removed Tables.
2019-09-13 16:17:35 +02:00
Steinar Foss
7811054029
properties.py: EclipeState: removed faults.
2019-09-13 16:17:35 +02:00
Steinar Foss
e1bffe7b3d
python: exposed class Eclipse3DProperties.
2019-09-13 16:17:35 +02:00
Steinar Foss
525dfdcd69
properties.py: removed Eclipse3DProperties.
2019-09-13 16:17:35 +02:00
Steinar Foss
369a99a64a
python: exposed class EclipseGrid.
2019-09-13 16:17:35 +02:00
Steinar Foss
d5e0d72f0f
properties.py: removed class EclipseGrid.
2019-09-13 16:17:35 +02:00
Steinar Foss
318d396adc
Parserkeyword property -> name/ ParserKW -> ParserKeyword.
2019-09-06 22:50:25 +02:00
Steinar Foss
ff79a404be
Can extract parserkw's in python.
...
added keyword PYINPUT.
added pythonclass ParserKW.
python acces to ParserKW.
removed wrong kw PYINPUT.
...
2019-09-06 15:40:31 +02:00
Steinar Foss
132fc1ff1b
moved pyclass EclipseConfig to ecl_state.
2019-09-06 09:42:46 +02:00
Steinar Foss
6dfab9c621
added new python test state2.
2019-09-06 09:13:30 +02:00
Steinar Foss
dedc74f299
exposed cxx class EclipseConfig to python dir. via pybind11.
2019-09-06 09:05:02 +02:00
Steinar Foss
ad50a22ed7
removed python class EclipseConfig.
2019-09-05 21:05:19 +02:00
Joakim Hove
7984d2a0f4
Expose the Parser class properly to Python
2019-09-05 08:44:47 +02:00