poldrack / autocv Goto Github PK
View Code? Open in Web Editor NEWautomatic generation of CV
License: MIT License
automatic generation of CV
License: MIT License
It would probably not be too difficult to set it up so that it can be run either inside a docker with auto-installation of latex, or directly on host and you're responsible for setting up latex yourself?
Originally posted by @thesamovar in #6 (comment)
currently the code requires that all of the necessary files are in the current working directory. it would be useful to allow a command line setting for make_cv.py that would allow specification of an arbitrary directory. In particular, this would make adding tests much easier.
https://twitter.com/neuralreckoning/status/1264944287600476160?s=20
Feature suggestion: some simple templating to format CVs to different requirements. I've often seen very specific requirements for different jobs/grants/etc.
The file linked to at the end of the README (https://github.com/poldrack/autoCV/blob/master/tests/autocv_template.pdf) does not exist.
The initial release of the code (1.0a0) leaves a lot to be desired. In the next few weeks I am planning to refactor it, with a few goals in mind:
define Publications class
define Researcher class
separate downloading from rendering
-- ultimately would like to be able to render to generic markup (e.g. using jinja2) but probably won't get there for this next version.
better command line interface
need to rethink docker workflow. right now, the calls to docker use the version of the package that is installed within the container, rather than the current version on the host system, which could lead to version mismatches.
Modularity (suggested by @chrisgorgo): try driving the refactor by making it easier for people to contribute new modules/components. For example layouts, styles, data sources etc.
tests
the current testing strategy has unwanted dependencies between tests. should rewrite using a strategy that decouples the individual tests
Running the test suite on Windows 10 with TeXMaker lead to the following failure:
______________________________________________ test_latex_cv_write_latex ______________________________________________
latexcv = <autocv.latex.LatexCV object at 0x0000013D971690D0>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x0000013D93018100>, _basetemp=WindowsPath('C:/Users/xxx/AppData/Local/Temp/pytest-of-mph648/pytest-0')))
def test_latex_cv_write_latex(latexcv, tmpdir_factory):
outfile = tmpdir_factory.mktemp("data").join("test.tex")
> latexcv.write_latex(outfile)
tests\test_latex.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
autocv\latex.py:56: in write_latex
f.write(getattr(self, section))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <encodings.cp1252.IncrementalEncoder object at 0x0000013D97169220>
input = '\\section*{Publications (Google Scholar H-index = 129)}\\subsection*{2022}Adebimpe A, Bertolero M, Dolui S et al. (20...ations. \\textit{Psychon Bull Rev, 3}, 434-48. \\href{http://dx.doi.org/10.3758/bf03214547}{DOI} \\vspace{2mm}\r\n\r\n'
final = False
def encode(self, input, final=False):
> return codecs.charmap_encode(input,self.errors,encoding_table)[0]
E UnicodeEncodeError: 'charmap' codec can't encode character '\u0144' in position 34449: character maps to <undefined>
C:\ProgramData\Anaconda3\lib\encodings\cp1252.py:19: UnicodeEncodeError
I also got the following warning:
..\..\..\..\..\ProgramData\Anaconda3\lib\site-packages\pyreadline\py3k_compat.py:8
C:\ProgramData\Anaconda3\lib\site-packages\pyreadline\py3k_compat.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
return isinstance(x, collections.Callable)
..\..\..\..\..\ProgramData\Anaconda3\lib\site-packages\win32\lib\pywintypes.py:2
C:\ProgramData\Anaconda3\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp, sys, os
autocv\utils.py:174
C:\Users\mph648\Documents\GitHub\autoCV\autocv\utils.py:174: DeprecationWarning: invalid escape sequence \&
setattr(pub, field, value.replace(' &', ' \&') ) # noqa
-- Docs: https://docs.pytest.org/en/stable/warnings.html
Editorial board membership and reviwer service might be possible to acquire automatically via Publons API: https://publons.com/api/v2/
Maybe a suggestion for future add-ons: would it be possible to export this to the various biosketch formats used by NIH or other government/funding agencies?
The package builds and installs correctly here but when trying to run it I have the error "can't find 'main' module in ". This is after following the instructions on the ReadMe and help pages.
List of papers authored by a person and number of citations per article can be obtained via Semantic Scholar API: https://api.semanticscholar.org/
This could be used to, for example, highlight most cited first/last author articles.
Per https://twitter.com/choldgraf/status/1264941141364899840?s=20 from @choldgraf:
One thought: it might be nice to cleanly separate our the "pull my credentials from various open sources" step and the "render my cv with latex" step. They seem easily separable and the first could be used as an entry into other kinds of outputs (eg html)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.