Skip to content

Commit

Permalink
Deploy to GitHub Pages 9463789
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 28, 2023
1 parent 684511b commit cb031da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions plugins/bioengine-test-run.imjoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/manifest.json"
},
{
"revision": "541ae2cd42fccd0c9b732e791c000843",
"revision": "36ed2648c883c1e98551c9f408d09447",
"url": "/plugins/bioengine-test-run.imjoy.html"
},
{
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"});
Expand Down

0 comments on commit cb031da

Please sign in to comment.