args = parser.parse_args()
print(args)

path2output = '../../HTMLs/overview_plots/'

patients_sessions = [(83, 3), (89, 1)]

#######################
# HTML ALL PATIENTS   #
#######################
# WRITE TO HTML FILE
fn_html = f'overview_all_patients.html'
fn_html = os.path.join(path2output, fn_html)
os.makedirs(os.path.dirname(fn_html), exist_ok=True)

text_list = HTML.HTML_all_patients(patients_sessions)
with open(fn_html, 'w') as f:
    for line in text_list:
        f.write("%s\n" % line)
print('HTML saved to: ', fn_html)

####################
# HTML PER PATIENT #
####################
for patient, session in patients_sessions:

    args.patient = patient
    args.session = session
    for block in ['syntactic', 'pragmatic']:
        args.block = block
        # Get TrialInfo