Skip to content

Commit

Permalink
move article_class.py to article.py; update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mpacer committed Mar 4, 2018
1 parent 97381ca commit a36d836
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion allofplos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ def get_corpus_dir():
# import after creating global variables that they may rely upon
# (e.g., corpusdir)

from .article_class import Article
from .article import Article
from .corpus import Corpus
File renamed without changes.
2 changes: 1 addition & 1 deletion allofplos/corpus/plos_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

from ..plos_regex import validate_doi
from ..transformations import (BASE_URL_API, filename_to_doi, doi_to_path, doi_to_url)
from ..article_class import Article
from ..article import Article
from .gdrive import (download_file_from_google_drive, get_zip_metadata, unzip_articles,
ZIP_ID, LOCAL_ZIP, LOCAL_TEST_ZIP, TEST_ZIP_ID, min_files_for_valid_corpus)

Expand Down
2 changes: 1 addition & 1 deletion allofplos/makedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .corpus import Corpus
from .transformations import filename_to_doi, convert_country
from . import starterdir
from .article_class import Article
from .article import Article

journal_title_dict = {
'PLOS ONE': 'PLOS ONE',
Expand Down
2 changes: 1 addition & 1 deletion allofplos/samples/corpus_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ..plos_corpus import (listdir_nohidden, uncorrected_proofs_text_list,
download_updated_xml, get_all_solr_dois,
download_check_and_move)
from ..article_class import Article
from ..article import Article

counter = collections.Counter
pmcdir = "pmc_articles"
Expand Down

0 comments on commit a36d836

Please sign in to comment.