render_dag

render_dag#

Generates a directed acyclic graph (DAG) of the build process.

render_dag.convert_to_png(file)#

Convert a file to a PNG thumbnail w/ a border and return its aspect ratio.

On error, returns None.

render_dag.get_dataset_dois(files, datasets)#

Local version of this function copied from showyourwork/zenodo.py

render_dag.is_relative_to(path, other)#

Local implementation of pathlib.Path.is_relative_to (for python < 3.9).

render_dag.removeprefix(s, prefix)#

Local implementation of str.removeprefix (for python < 3.9).

render_dag.should_ignore(ignore, path)#