Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 8, 2024
1 parent 8e3ec29 commit 4a0132a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion taxonium_component/src/webworkers/localBackendWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { processNewickAndMetadata } from "../utils/processNewick.js";
import { processNextstrain } from "../utils/processNextstrain.js";
import { ReadableWebToNodeStream } from "readable-web-to-node-stream";
import StreamValues from 'stream-json/streamers/StreamValues';
import StreamValues from "stream-json/streamers/StreamValues";

console.log("worker starting");
postMessage({ data: "Worker starting" });
Expand Down
12 changes: 9 additions & 3 deletions taxonium_data_handling/importing.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ function reduceMaxOrMin(array, accessFunction, maxOrMin) {
}
}

export const setUpStream = (the_stream, data, sendStatusMessage, StreamValues) => {
export const setUpStream = (
the_stream,
data,
sendStatusMessage,
StreamValues
) => {
const splitter = new StreamSplitter();

// Custom header parser using json-stream
Expand Down Expand Up @@ -162,7 +167,8 @@ export const setUpStream = (the_stream, data, sendStatusMessage, StreamValues) =
export const processJsonl = async (
jsonl,
sendStatusMessage,
ReadableWebToNodeStream, StreamValues
ReadableWebToNodeStream,
StreamValues
) => {
console.log(
"Worker processJsonl" //, jsonl
Expand All @@ -178,7 +184,7 @@ export const processJsonl = async (
the_stream = new stream.PassThrough();
}
let new_data = {};
setUpStream(the_stream, new_data, sendStatusMessage,StreamValues);
setUpStream(the_stream, new_data, sendStatusMessage, StreamValues);

if (status === "loaded") {
const dataAsArrayBuffer = data;
Expand Down

0 comments on commit 4a0132a

Please sign in to comment.