From cb031da5ed9931dd003c10e8374fe41caaaebf57 Mon Sep 17 00:00:00 2001 From: oeway Date: Thu, 28 Sep 2023 12:50:51 +0000 Subject: [PATCH] Deploy to GitHub Pages 9463789a9d2f7fdc6c59f61a87495ff9ac803992 --- plugins/bioengine-test-run.imjoy.html | 7 +++++++ ...> precache-manifest.9be60ea1ab9801abe9c32551c257f282.js | 2 +- service-worker.js | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) rename precache-manifest.dc2914a082d28214af3663ee886afd9f.js => precache-manifest.9be60ea1ab9801abe9c32551c257f282.js (99%) diff --git a/plugins/bioengine-test-run.imjoy.html b/plugins/bioengine-test-run.imjoy.html index bdb396ea..ba62f3e9 100644 --- a/plugins/bioengine-test-run.imjoy.html +++ b/plugins/bioengine-test-run.imjoy.html @@ -257,6 +257,10 @@ const sampleInput = rdf.sample_inputs[0] this.set_default_url(sampleInput) } + else{ + const testInputs = rdf.test_inputs[0] + this.set_default_url(testInputs) + } this.setInfoPanel("") this.setWaiting(false) this.setButtonsDisabled(false) @@ -553,6 +557,9 @@ _file.name = file_name if file_name.endswith(".tif") or file_name.endswith(".tiff"): image = imageio.volread(_file) + if file_name.endswith(".npy"): + image = np.load(_file) + image = image.squeeze() else: image = imageio.imread(_file) await api.log( diff --git a/precache-manifest.dc2914a082d28214af3663ee886afd9f.js b/precache-manifest.9be60ea1ab9801abe9c32551c257f282.js similarity index 99% rename from precache-manifest.dc2914a082d28214af3663ee886afd9f.js rename to precache-manifest.9be60ea1ab9801abe9c32551c257f282.js index 0d69f088..8b2d4ff9 100644 --- a/precache-manifest.dc2914a082d28214af3663ee886afd9f.js +++ b/precache-manifest.9be60ea1ab9801abe9c32551c257f282.js @@ -56,7 +56,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/manifest.json" }, { - "revision": "541ae2cd42fccd0c9b732e791c000843", + "revision": "36ed2648c883c1e98551c9f408d09447", "url": "/plugins/bioengine-test-run.imjoy.html" }, { diff --git a/service-worker.js b/service-worker.js index e8f9e365..27cdfc8d 100644 --- a/service-worker.js +++ b/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/precache-manifest.dc2914a082d28214af3663ee886afd9f.js" + "/precache-manifest.9be60ea1ab9801abe9c32551c257f282.js" ); workbox.core.setCacheNameDetails({prefix: "bioimage"});