Skip to content

Commit ddb008c

Browse files
authored
Merge pull request #24 from DoubleML/s-remove-old-scripts
Clean repository
2 parents 4a29fc2 + b85b2ed commit ddb008c

File tree

127 files changed

+1027
-4953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1027
-4953
lines changed

.github/workflows/iivm_sim.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
script: [
20-
'scripts/irm/iivm_late_coverage.py',
20+
'scripts/irm/iivm_late.py',
2121
]
2222

2323
steps:
@@ -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: |

.github/workflows/ssm_sim.yml

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

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

56-
- name: Install dependencies
61+
- name: Install Monte-Cover
5762
run: |
58-
python -m pip install --upgrade pip
59-
pip install -r requirements.txt
63+
cd monte-cover
64+
uv venv
65+
uv sync
6066
6167
- name: Install DoubleML from correct branch
6268
run: |
63-
pip uninstall -y doubleml
64-
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
69+
source monte-cover/.venv/bin/activate
70+
uv pip uninstall doubleml
71+
uv pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6572
6673
- name: Set up Git configuration
6774
run: |
6875
git config --global user.name 'github-actions'
6976
git config --global user.email '[email protected]'
7077
7178
- name: Run scripts
72-
run: python ${{ matrix.script }}
79+
run: |
80+
source monte-cover/.venv/bin/activate
81+
uv run ${{ matrix.script }}
7382
7483
- name: Commit any existing changes
7584
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

doc/irm/irm.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The simulations are based on the the [make_irm_data](https://docs.doubleml.org/
3030

3131
```{python}
3232
#| echo: false
33-
metadata_file = '../../results/irm/irm_ate_coverage_metadata.csv'
33+
metadata_file = '../../results/irm/irm_ate_metadata.csv'
3434
metadata_df = pd.read_csv(metadata_file)
3535
print(metadata_df.T.to_string(header=False))
3636
```

doc/irm/irm_cate.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The non-uniform results (coverage, ci length and bias) refer to averaged values
3232

3333
```{python}
3434
#| echo: false
35-
metadata_file = '../../results/irm/irm_cate_coverage_metadata.csv'
35+
metadata_file = '../../results/irm/irm_cate_metadata.csv'
3636
metadata_df = pd.read_csv(metadata_file)
3737
print(metadata_df.T.to_string(header=False))
3838
```

doc/irm/irm_gate.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The non-uniform results (coverage, ci length and bias) refer to averaged values
3232

3333
```{python}
3434
#| echo: false
35-
metadata_file = '../../results/irm/irm_gate_coverage_metadata.csv'
35+
metadata_file = '../../results/irm/irm_gate_metadata.csv'
3636
metadata_df = pd.read_csv(metadata_file)
3737
print(metadata_df.T.to_string(header=False))
3838
```

doc/plm/pliv.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The simulations are based on the the [make_pliv_CHS2015](https://docs.doubleml.
3030

3131
```{python}
3232
#| echo: false
33-
metadata_file = '../../results/plm/pliv_late_coverage_metadata.csv'
33+
metadata_file = '../../results/plm/pliv_late_metadata.csv'
3434
metadata_df = pd.read_csv(metadata_file)
3535
print(metadata_df.T.to_string(header=False))
3636
```

doc/plm/plr.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The simulations are based on the the [make_plr_CCDDHNR2018](https://docs.double
3030

3131
```{python}
3232
#| echo: false
33-
metadata_file = '../../results/plm/plr_ate_coverage_metadata.csv'
33+
metadata_file = '../../results/plm/plr_ate_metadata.csv'
3434
metadata_df = pd.read_csv(metadata_file)
3535
print(metadata_df.T.to_string(header=False))
3636
```

doc/plm/plr_cate.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The non-uniform results (coverage, ci length and bias) refer to averaged values
3232

3333
```{python}
3434
#| echo: false
35-
metadata_file = '../../results/plm/plr_cate_coverage_metadata.csv'
35+
metadata_file = '../../results/plm/plr_cate_metadata.csv'
3636
metadata_df = pd.read_csv(metadata_file)
3737
print(metadata_df.T.to_string(header=False))
3838
```
@@ -116,4 +116,4 @@ generate_and_show_styled_table(
116116
rename_map={"Learner g": "Learner l"},
117117
coverage_highlight_cols=["Coverage", "Uniform Coverage"]
118118
)
119-
```
119+
```

doc/plm/plr_gate.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The non-uniform results (coverage, ci length and bias) refer to averaged values
3232

3333
```{python}
3434
#| echo: false
35-
metadata_file = '../../results/plm/plr_gate_coverage_metadata.csv'
35+
metadata_file = '../../results/plm/plr_gate_metadata.csv'
3636
metadata_df = pd.read_csv(metadata_file)
3737
print(metadata_df.T.to_string(header=False))
3838
```

0 commit comments

Comments
 (0)