Skip to content

Commit

Permalink
create placeholder files
Browse files Browse the repository at this point in the history
  • Loading branch information
AFg6K7h4fhy2 committed Dec 19, 2024
1 parent 00ebf47 commit 87365ef
Show file tree
Hide file tree
Showing 142 changed files with 1,175 additions and 2 deletions.
7 changes: 7 additions & 0 deletions assets/misc/question-template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#

## Background Information

## Resolution Criteria

### Fine Print
54 changes: 54 additions & 0 deletions assets/scripts/create_questions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
"""
Generates skeleton question files for the
five GET groups so the author does not have
manually create them.
"""

# %% LIBRARY IMPORTS

import glob
import os

# %% BASELINE QUESTION CONTENT

baseline_question_content = """
#
## Background Information
## Resolution Criteria
### Fine Print
"""

# %% GENERATE QUESTION FILES

target_dir = "../../website/"
dirs_to_make = ["q_ELSI", "q_TACA", "q_RPD", "q_ADS", "q_HISE"]
current_dir = os.getcwd()

for d in dirs_to_make:
target_q_dir = os.path.join(target_dir, d)
# check if the directory exists, if not
# create it
if not os.path.exists(target_q_dir):
os.makedirs(target_q_dir)
# range of questions to make
q_range = list(range(1, 30 + 1))
q_files = [
f"{d}_0{elt}.qmd" if elt <= 9 else f"{d}_{elt}.qmd" for elt in q_range
]
q_files_full = [f"{target_q_dir}/{q_file}" for q_file in q_files]
# get all files in the target question dir
existing_q_files = glob.glob(f"{target_q_dir}/*.qmd")
not_yet_created_q_files = [
q_f for q_f in q_files_full if q_f not in existing_q_files
]
for q_f in not_yet_created_q_files:
# create the not yet existing file
with open(q_f, "w") as f:
f.write(baseline_question_content)
print(f"Created: {q_f}")


# %%
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_01.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_02.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_03.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_04.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_05.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_06.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_07.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_08.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_09.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_10.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_11.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_12.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_13.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_14.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_15.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_16.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_17.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_18.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_19.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_20.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_21.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_22.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_23.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_24.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_25.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_26.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_27.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_28.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_29.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ADS/q_ADS_30.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
4 changes: 2 additions & 2 deletions website/q_ELSI/q_ELSI_05.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

## Background Information

### Fine Print

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ELSI/q_ELSI_12.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ELSI/q_ELSI_13.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ELSI/q_ELSI_14.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ELSI/q_ELSI_15.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ELSI/q_ELSI_16.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
8 changes: 8 additions & 0 deletions website/q_ELSI/q_ELSI_17.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

#

## Background Information

## Resolution Criteria

### Fine Print
Loading

0 comments on commit 87365ef

Please sign in to comment.