neurosynth / ACE

Tools for automatic extraction of activation coordinates from published neuroimaging articles.
MIT License
43 stars 28 forks source link

[FIX] handle empty table #53

Closed jdkent closed 3 months ago

jdkent commented 3 months ago
Traceback (most recent call last):
  File "ace_create_db_and_add_articles.py", line 32, in <module>
    missing_sources = add_articles(
  File "/home/james/ACE/ace/ingest.py", line 67, in add_articles
    article = source.parse_article(html, pmid, metadata_dir=metadata_dir, **kwargs)
  File "/home/james/ACE/ace/sources.py", line 671, in parse_article
    t = self.parse_table(table_html)
  File "/home/james/ACE/ace/sources.py", line 698, in parse_table
    return super(WileySource, self).parse_table(table)
  File "/home/james/ACE/ace/sources.py", line 219, in parse_table
    n_cols = max([n_cols_in_row(
ValueError: max() arg is an empty sequence