@@ -146,7 +146,7 @@ def show_cgns_tree(tree: list, offset: str =''):
146
146
"""A TimeSeriesType is a tuple[TimeSequenceType,FieldType]
147
147
"""
148
148
149
- def ReadIndex (pyTree : list , dim : list [int ]):
149
+ def read_index (pyTree : list , dim : list [int ]):
150
150
"""Read Index Array or Index Range from CGNS
151
151
152
152
Args:
@@ -156,11 +156,11 @@ def ReadIndex(pyTree: list, dim: list[int]):
156
156
Returns:
157
157
indices
158
158
"""
159
- a = ReadIndexArray (pyTree )
160
- b = ReadIndexRange (pyTree , dim )
159
+ a = read_index_array (pyTree )
160
+ b = read_index_range (pyTree , dim )
161
161
return np .hstack ((a , b ))
162
162
163
- def ReadIndexArray (pyTree : list ):
163
+ def read_index_array (pyTree : list ):
164
164
"""Read Index Array from CGNS
165
165
166
166
Args:
@@ -179,7 +179,7 @@ def ReadIndexArray(pyTree: list):
179
179
res .extend (data [1 ].ravel ())
180
180
return np .array (res , dtype = int ).ravel ()
181
181
182
- def ReadIndexRange (pyTree : list , dim : list [int ]):
182
+ def read_index_range (pyTree : list , dim : list [int ]):
183
183
"""Read Index Range from CGNS
184
184
185
185
Args:
@@ -1246,7 +1246,7 @@ def get_nodal_tags(self, zone_name: str = None, base_name: str = None,
1246
1246
for BCPath in BCPaths :
1247
1247
BCNode = CGU .getNodeByPath (zone_node , BCPath )
1248
1248
BCName = BCNode [0 ]
1249
- indices = ReadIndex (BCNode , dim )
1249
+ indices = read_index (BCNode , dim )
1250
1250
if len (indices ) == 0 :
1251
1251
continue
1252
1252
@@ -1265,7 +1265,7 @@ def get_nodal_tags(self, zone_name: str = None, base_name: str = None,
1265
1265
if fnpath :
1266
1266
fn = CGU .getNodeByPath (ZSRNode , fnpath [0 ])
1267
1267
familyName = CGU .getValueAsString (fn )
1268
- indices = ReadIndex (ZSRNode , dim )
1268
+ indices = read_index (ZSRNode , dim )
1269
1269
if len (indices ) == 0 :
1270
1270
continue
1271
1271
gl = CGU .getPathsByTypeSet (ZSRNode , ["GridLocation_t" ])[0 ]
0 commit comments