From 0626e2e2c616526d6cf3be0ea75c23d1856a0781 Mon Sep 17 00:00:00 2001 From: Caleb Hulbert Date: Mon, 16 Dec 2024 15:12:23 -0500 Subject: [PATCH] fix(test): debugging for CommitCanvasTeston github actions --- .../janelia/saalfeldlab/util/n5/DatasetDiscovery.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/janelia/saalfeldlab/util/n5/DatasetDiscovery.kt b/src/main/kotlin/org/janelia/saalfeldlab/util/n5/DatasetDiscovery.kt index 11724f27d..8e6fadcb2 100644 --- a/src/main/kotlin/org/janelia/saalfeldlab/util/n5/DatasetDiscovery.kt +++ b/src/main/kotlin/org/janelia/saalfeldlab/util/n5/DatasetDiscovery.kt @@ -1,5 +1,7 @@ package org.janelia.saalfeldlab.util.n5 +import io.github.oshai.kotlinlogging.KotlinLogging +import org.commonmark.internal.util.Parsing import org.janelia.saalfeldlab.n5.N5Reader import org.janelia.saalfeldlab.n5.universe.N5DatasetDiscoverer import org.janelia.saalfeldlab.n5.universe.N5TreeNode @@ -27,6 +29,8 @@ private fun getDiscoverer(n5: N5Reader): N5DatasetDiscoverer { return N5DatasetDiscoverer(n5, IO_EXECUTOR, METADATA_PARSERS, GROUP_PARSERS) } +private val LOG = KotlinLogging.logger { } + /** * Parses the metadata from a given N5Reader starting at a specified initial group and applies parsing results to nodes * using the provided callback function. @@ -39,5 +43,9 @@ private fun getDiscoverer(n5: N5Reader): N5DatasetDiscoverer { @JvmOverloads internal fun discoverAndParseRecursive(n5Reader: N5Reader, initialGroup: String = "/", callback: (N5TreeNode) -> Unit = {}): N5TreeNode { val discoverer = getDiscoverer(n5Reader) - return discoverer.discoverAndParseRecursive(initialGroup, callback) + println("\tParsing ${n5Reader.uri}") + return discoverer.discoverAndParseRecursive(initialGroup) { + println("\t\tDiscovered dataset ${it.path} with metadata ${it.metadata}") + callback(it) + } } \ No newline at end of file