Skip to content

Commit 0dead35

Browse files
committed
move _close_connetion call to end of post_init
1 parent 1ec4a62 commit 0dead35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/graphnet/data/dataset/lmdb/lmdb_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ def _post_init(self) -> None:
169169
if self._pre_computed_representation is None:
170170
# Only check for missing columns if using raw tables
171171
self._remove_missing_columns()
172-
self._close_connection()
173172
if self._pre_computed_representation is not None:
174173
self._identify_missing_truth_labels()
174+
self._close_connection()
175175

176176
def _identify_missing_truth_labels(self) -> None:
177177
"""Identify missing truth labels in the pre-computed representation."""

0 commit comments

Comments
 (0)