File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/subscript/field_statistics Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1004,11 +1004,11 @@ def main():
1004
1004
prop_param = xtgeo.gridproperty_from_file(
1005
1005
filename,
1006
1006
fformat="roff")
1007
- prop_param.to_roxar(PRJ, GRIDNAME, name)
1008
1007
new_name = name
1009
1008
if label:
1010
1009
new_name = name + "_" + label
1011
1010
prop_param.name = new_name
1011
+ prop_param.to_roxar(PRJ, GRIDNAME, new_name)
1012
1012
name = "ertbox--nactive_" + zone + "_" + str(iteration)
1013
1013
print(f"Read: {{name}} into {{GRIDNAME}}")
1014
1014
filename = Path(result_path) / Path(name + ".roff")
@@ -1039,7 +1039,10 @@ def main():
1039
1039
print(f"Read: {{name}} into {{GRIDNAME}}")
1040
1040
filename = Path(result_path) / Path(name + ".roff")
1041
1041
prop_param = xtgeo.gridproperty_from_file(filename, fformat="roff")
1042
- prop_param.to_roxar(PRJ, GRIDNAME, name)
1042
+ new_name = name
1043
+ if label:
1044
+ new_name = name + "_" + label
1045
+ prop_param.to_roxar(PRJ, GRIDNAME, new_name)
1043
1046
1044
1047
if __name__ == "__main__":
1045
1048
main()
You can’t perform that action at this time.
0 commit comments