#4736 System python command refactor (#4743)

* Move case loading commands from Commands to project and case
* Major refactor
* Fix problems with Python examples
* Add ability to export snapshot from just one view + fixup
* Case comments and black
* Make all modules pass pylint test
This commit is contained in:
Gaute Lindkvist
2019-09-23 11:50:33 +02:00
committed by GitHub
parent 00eb02ccec
commit a2bad82391
54 changed files with 1753 additions and 1432 deletions

View File

@@ -5,7 +5,7 @@ import rips
resinsight = rips.Instance.find()
case = resinsight.project.case(id=0)
case = resinsight.project.case(case_id=0)
total_cell_count = case.cell_count().reservoir_cell_count
values = []
@@ -13,5 +13,5 @@ for i in range(0, total_cell_count):
values.append(i % 2 * 0.75);
print("Applying values to full grid")
case.properties.set_grid_property(values, 'DYNAMIC_NATIVE', 'SOIL', 0)
case.set_grid_property(values, 'DYNAMIC_NATIVE', 'SOIL', 0)