Skip to content

Commit

Permalink
fix print stats
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Mar 27, 2023
1 parent 805333c commit e328a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ace/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def delete_article(self, pmid):
def print_stats(self):
''' Summarize the current state of the DB. '''
n_articles = self.session.query(Article).count()
n_articles_with_coordinates = self.session.query(Activation).distinct('article_id').count()
n_articles_with_coordinates = self.session.query(Table).filter(Table.n_activations>0).distinct('article_id').count()
n_tables = self.session.query(Table).count()
n_activations = self.session.query(Activation).count()
n_links = self.session.query(NeurovaultLink).count()
Expand Down

0 comments on commit e328a9b

Please sign in to comment.