From aab1cdf99a0a597b8cdb14d8f16722cb3024a53b Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 8 Aug 2022 16:29:09 -0400 Subject: [PATCH] Finish splitting things up. --- docs/api.rst | 7 ++++++- tedana/bibtex.py | 2 ++ tedana/utils.py | 2 -- tedana/workflows/tedana.py | 3 ++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index d0a666eba..dfe600209 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -214,7 +214,12 @@ API :toctree: generated/ :template: function.rst - tedana.bibtex. + tedana.bibtex.find_braces + tedana.bibtex.reduce_idx + tedana.bibtex.index_bibtex_identifiers + tedana.bibtex.find_citations + tedana.bibtex.reduce_references + tedana.bibtex.get_description_references .. _api_utils_ref: diff --git a/tedana/bibtex.py b/tedana/bibtex.py index 0a374dfc0..4734bbfc7 100644 --- a/tedana/bibtex.py +++ b/tedana/bibtex.py @@ -8,6 +8,8 @@ import numpy as np import pandas as pd +from tedana.utils import get_resource_path + LGR = logging.getLogger("GENERAL") RepLGR = logging.getLogger("REPORT") diff --git a/tedana/utils.py b/tedana/utils.py index 1c72c95bc..4728d4595 100644 --- a/tedana/utils.py +++ b/tedana/utils.py @@ -3,11 +3,9 @@ """ import logging import os.path as op -import re import nibabel as nib import numpy as np -import pandas as pd from nilearn._utils import check_niimg from scipy import ndimage from sklearn.utils import check_array diff --git a/tedana/workflows/tedana.py b/tedana/workflows/tedana.py index ac876d0d4..02e14bd8e 100644 --- a/tedana/workflows/tedana.py +++ b/tedana/workflows/tedana.py @@ -29,6 +29,7 @@ selection, utils, ) +from tedana.bibtex import get_description_references from tedana.stats import computefeats2 from tedana.workflows.parser_utils import check_tedpca_value, is_valid_file @@ -837,7 +838,7 @@ def tedana_workflow( fo.write(report) # Collect BibTeX entries for cited papers - references = utils.get_description_references(report) + references = get_description_references(report) with open(bibtex_file, "w") as fo: fo.write(references)