-
Notifications
You must be signed in to change notification settings - Fork 21
/
publications.qmd
44 lines (36 loc) · 1 KB
/
publications.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: "Publications"
format:
html:
page-layout: full
---
```{python}
#| echo: false
#| output: asis
#| warning: false
#| message: false
import os
# this code uses academicdb to put together a list of publications
try:
from datetime import date
from contextlib import suppress
from academicdb.dbbuilder import setup_db
from academicdb.utils import escape_characters_for_latex
from academicdb.render_pubs import get_publications
import logging
import argparse
configfile = 'config.toml'
if not os.path.exists(configfile):
raise FileNotFoundError(
f'You must first set up the config.toml file'
)
db = setup_db(configfile)
print(get_publications(
db.get_collection('publications'),
))
print('\ \n\ \n')
print(f'*Updated: {date.today()} - Publication list created using [autocv](https://github.com/poldrack/academicdb)*')
except Exception:
if not os.getenv("POLDRACKLAB_IGNORE_FAILURE"):
raise
```