Skip to content

Commit 4dcb55a

Browse files
committed
update qmd and workflow files
1 parent 6b3b92a commit 4dcb55a

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/iivm_sim.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,37 @@ jobs:
4747
with:
4848
ref: ${{ env.TARGET_BRANCH }}
4949

50+
- name: Install uv
51+
uses: astral-sh/setup-uv@v5
52+
with:
53+
version: "0.7.8"
54+
5055
- name: Set up Python
5156
uses: actions/setup-python@v5
5257
with:
53-
python-version: '3.12'
58+
python-version-file: "monte-cover/pyproject.toml"
5459

55-
- name: Install dependencies
60+
- name: Install Monte-Cover
5661
run: |
57-
python -m pip install --upgrade pip
58-
pip install -r requirements.txt
62+
cd monte-cover
63+
uv venv
64+
uv sync
5965
6066
- name: Install DoubleML from correct branch
6167
run: |
62-
pip uninstall -y doubleml
63-
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
68+
source monte-cover/.venv/bin/activate
69+
uv pip uninstall doubleml
70+
uv pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6471
6572
- name: Set up Git configuration
6673
run: |
6774
git config --global user.name 'github-actions'
6875
git config --global user.email '[email protected]'
6976
7077
- name: Run scripts
71-
run: python ${{ matrix.script }}
78+
run: |
79+
source monte-cover/.venv/bin/activate
80+
uv run ${{ matrix.script }}
7281
7382
- name: Commit any existing changes
7483
run: |

doc/irm/iivm.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The simulations are based on the the [make_iivm_data](https://docs.doubleml.org
3030

3131
```{python}
3232
#| echo: false
33-
metadata_file = '../../results/irm/iivm_late_coverage_metadata.csv'
33+
metadata_file = '../../results/irm/iivm_late_metadata.csv'
3434
metadata_df = pd.read_csv(metadata_file)
3535
print(metadata_df.T.to_string(header=False))
3636
```
@@ -46,7 +46,7 @@ df = pd.read_csv("../../results/irm/iivm_late_coverage.csv", index_col=None)
4646
assert df["repetition"].nunique() == 1
4747
n_rep = df["repetition"].unique()[0]
4848
49-
display_columns = ["Learner g", "Learner m", "Bias", "CI Length", "Coverage"]
49+
display_columns = ["Learner g", "Learner m", "Learner r", "Bias", "CI Length", "Coverage"]
5050
```
5151

5252

0 commit comments

Comments
 (0)