Skip to content

Commit 4b010ea

Browse files
authored
Merge pull request #49 from ResearchLuxembourg/develop
develop→master merge for 2.0.1
2 parents 3e895b2 + 5678feb commit 4b010ea

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
77
PlotUtils = "995b91a9-d308-5afd-9ec6-746e21dbc043"
88
RollingFunctions = "b0e4dd01-7b14-53d8-9b45-175a3e362653"
99
XLSX = "fdbf4ff8-1666-58a4-91e7-1b58723a45e0"
10+
11+
[compat]
12+
CSV = "0.10"
13+
CairoMakie = "0.8"
14+
DataFrames = "1.3"
15+
Distributions = "0.25"
16+
PlotUtils = "1.3"
17+
RollingFunctions = "0.6"
18+
XLSX = "0.8"

components/lib/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function read_one_sheet_xlsx(fn)
1212

1313
length(sheets) == 1 || @throw DomainError length(sheets) "unexpected number of sheets"
1414

15-
return DataFrame(XLSX.gettable(xls[sheets[1]])...)
15+
return DataFrame(XLSX.gettable(xls[sheets[1]]))
1616
end
1717

1818
normalize!(x; sum_args...) = x ./= sum(x; sum_args...)

run_pipeline.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ log () {
1515

1616
echo "found $FILE" | log find_input
1717

18-
IMAGE=researchluxembourg/restimator
18+
IMAGE=ghcr.io/researchluxembourg/restimator
1919
MOUNT="-v $PWD/input:/tool/input -v $PWD/output:/tool/output -v $PWD/logs:/tool/logs "
2020
DOCKER="docker run --rm $MOUNT $IMAGE julia --project "
2121

2222
mkdir -p output logs
2323
export RESTIMATOR_OUTDIR=output
2424

25-
if $DOCKER components/check_input.jl "$FILE" | log check
25+
if $DOCKER components/check_input.jl "$FILE"
2626
then
27-
$DOCKER components/estimate_r_t.jl "$FILE" | log rt
28-
$DOCKER components/estimate_r_eff.jl "$FILE" | log reff
27+
$DOCKER components/estimate_r_t.jl "$FILE" 2>&1 | log rt
28+
$DOCKER components/estimate_r_eff.jl "$FILE" 2>&1 | log reff
2929
else
3030
echo $0: check failed >&2
3131
exit 1
32-
fi
32+
fi 2>&1 | log check

0 commit comments

Comments
 (0)