From 1c07b700e3b88212e9c12b6da34189c8aaafc38e Mon Sep 17 00:00:00 2001 From: Rajeev Jain Date: Fri, 16 Aug 2024 14:04:13 -0500 Subject: [PATCH] o Fix conn when orig_fv is None (#896) --- uxarray/io/_topology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uxarray/io/_topology.py b/uxarray/io/_topology.py index 7594c698d..a81a68b3f 100644 --- a/uxarray/io/_topology.py +++ b/uxarray/io/_topology.py @@ -60,7 +60,7 @@ def _process_connectivity(conn, orig_fv, start_index): if orig_fv is None: # no fill values, adjust start index - return conn - 1 + return conn - start_index if orig_fv != INT_FILL_VALUE: conn = _replace_fill_values(conn, orig_fv, INT_FILL_VALUE, INT_DTYPE)