Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion jsroot/types/fundamental/integer/read.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ const fields = [
"SplitUInt64",
];

const [input, output] = process.argv.slice(2);
const [input = "types.fundamental.integer.root", output = "types.fundamental.integer.json"] =
process.argv.slice(2);

read(input, output, fields, checkBigInt, { marker: "__BIGINT__" }); // marker is used to write BigInts as string in JSON and then convert to number to avoid precision loss
4 changes: 3 additions & 1 deletion jsroot/types/fundamental/misc/read.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ function convertToNum(value) {

const fields = ["Bit", "Byte", "Char"];

const [input, output] = process.argv.slice(2);
const [input = "types.fundamental.misc.root", output = "types.fundamental.misc.json"] =
process.argv.slice(2);

read(input, output, fields, convertToNum);
4 changes: 3 additions & 1 deletion jsroot/types/fundamental/real/read.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ const fields = [
"DoubleSplitReal64",
];

const [input, output] = process.argv.slice(2);
const [input = "types.fundamental.real.root", output = "types.fundamental.real.json"] =
process.argv.slice(2);

read(input, output, fields, floatToHex);
4 changes: 3 additions & 1 deletion jsroot/types/fundamental/real32quant/read.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ const fields = [
"DoubleReal32Quant32",
];

const [input, output] = process.argv.slice(2);
const [input = "types.fundamental.real32quant.root", output = "types.fundamental.real32quant.json"] =
process.argv.slice(2);

read(input, output, fields, floatToHex);
4 changes: 3 additions & 1 deletion jsroot/types/fundamental/real32trunc/read.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ const fields = [
"DoubleReal32Trunc31",
];

const [input, output] = process.argv.slice(2);
const [input = "types.fundamental.real32trunc.root", output = "types.fundamental.real32trunc.json"] =
process.argv.slice(2);

read(input, output, fields, floatToHex);