Torbjørn Skille
5bf2087d0a
DeckItem - API change
2022-02-14 15:48:52 +01:00
Joakim Hove
0fc2448369
Expose UDAValue to Python
2021-11-11 15:53:21 +01:00
Joakim Hove
55eeabba42
Use only python3 syntax for import from test directory
2021-11-11 15:53:21 +01:00
Håkon Hægland
4e5f7ef48e
Add some more UDA value tests.
...
Adds some more tests for UDA value items when constructing DeckKeyword
from Python.
2021-11-10 15:56:36 +01:00
Håkon Hægland
25ccb17917
Test UDA value DeckKeyword
...
Test that the DeckKeyword() Python constructor can handle UDA value
keywords.
2021-11-09 11:47:58 +01:00
Joakim Hove
84d5dbde0e
Make the Builtin class available from Python
2021-03-09 12:22:39 +01:00
Joakim Hove
92188eea8a
Merge pull request #1167 from stefoss23/add_keyword
...
Add keyword, python deck
2019-10-29 16:54:22 +01:00
Joakim Hove
99e32edd78
Use try: except: to import test utility code
2019-10-28 20:30:39 +01:00
Steinar Foss
576ddd4987
python deck: added member add(keyword).
2019-10-25 14:11:52 +02: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
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
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
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
f7a434f274
Do not import ParserKeyword in Python
2019-09-21 07:31:03 +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
Joakim Hove
7984d2a0f4
Expose the Parser class properly to Python
2019-09-05 08:44:47 +02:00