Skip to content

Commit

Permalink
docs(logbook): update day 2 and add day 3
Browse files Browse the repository at this point in the history
  • Loading branch information
amyheather committed Oct 11, 2024
1 parent 49356a8 commit 9ac1b96
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 2 deletions.
23 changes: 21 additions & 2 deletions logbook/posts/2024_10_02/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bibliography: ../../../quarto_site/references.bib

::: {.callout-note}

Consensus on scope. Total time used: Xh Xm (X%)
Consensus on scope and archive the repository. Total time used: 1h 7m (2.8%)

:::

Expand All @@ -20,4 +20,23 @@ Emailed the scope to Tom, who responded that he was happy with it. There was one

But we identified that it was captured in Figure 4.

## 15.38-X: Archvie repository
## 15.38-15.47: Archive repository

Updated CHANGELOG, set up sync on Zenodo, and created a release, to archive the repository with agreed scope on Zenodo.

## Timings

```{python}
import sys
sys.path.append('../')
from timings import calculate_times
# Minutes used prior to today
used_to_date = 58
# Times from today
times = [
('15.38', '15.47')]
calculate_times(used_to_date, times)
```
75 changes: 75 additions & 0 deletions logbook/posts/2024_10_11/index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
title: "Day 3"
author: "Amy Heather"
date: "2024-10-11"
categories: [reproduction]
bibliography: ../../../quarto_site/references.bib
---

::: {.callout-note}

X. Total time used: Xh Xm (X%)

:::

## 12.13-12.26: Set up environment and copy over files

I created an `.RProj` in `reproduction/`, then looked to the repository and article for any packages and versions.

* Supplementary material: R 3.6.0
* Article: No mention
* Repository: `master.R` has `library(tidyverse)` and `covid_triage_simr.R` has:

```
library(parallel)
library(tidyr)
library(dplyr)
library(ggplot2)
library(gridExtra)
```

As I have had difficulty attempting to backdate R, I will first try this in my current version of R (4.4.1) with the latest packages.

I created a DESCRIPTION file with these packages:

```
Title: Computational reproducibility assessment of Wood et al. 2021
Depends:
R
Imports:
parallel,
tidyr,
dplyr,
ggplot2,
gridExtra,
tidyverse
```

I set up the `renv`:

```
renv::init(bare=TRUE)
renv::install()
renv::snapshot()
```

I copied the scripts and inputs into `reproduction/`, but not the original outputs. I reorganised these into `inputs/` and `scripts/` folders.

I looked over the scripts, easily identifying `master.R` (which I renamed to main) as the primary script to run, which itself uses `covid_triage_simr.R` which contains the model code. There were several scripts beginning `fig...` for creating plots from the article, it appears.

## Timings

```{python}
import sys
sys.path.append('../')
from timings import calculate_times
# Minutes used prior to today
used_to_date = 67
# Times from today
times = [
('12.13', '12.26')]
calculate_times(used_to_date, times)
```

0 comments on commit 9ac1b96

Please sign in to comment.