Skip to content

Commit ce0912f

Browse files
committed
Add check for just one branch ID.
1 parent 68c23a9 commit ce0912f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Python/site-packages/sv_rom_extract_results

Python/site-packages/sv_rom_extract_results/post.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def project_results_to_centerline(self):
267267

268268
# all branch ids in centerline
269269
ids_cent = np.unique(arrays_cent['BranchId']).tolist()
270-
ids_cent.remove(-1)
270+
if len(ids_cent) > 1:
271+
ids_cent.remove(-1)
271272

272273
# loop all result fields
273274
for f in self.params.data_names:

0 commit comments

Comments
 (0)