JetBrains-Research / pubtrends

Scientific literature explorer. Runs a Pubmed or Semantic Scholar search and allows user to explore high-level structure of result papers
Apache License 2.0
36 stars 2 forks source link

UOT #239

Closed olegs closed 4 years ago

olegs commented 4 years ago

Happened during search human aging

[2020-10-26 14:29:02,411: ERROR/ForkPoolWorker-2] Task analyze_search_terms[33bd61ad-3e36-475e-b332-4de6e0232eae] raised unexpected: TypeError("unsupported operand type(s) for -: 'tuple' and 'int'")
Traceback (most recent call last):
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/user/pysrc/celery/tasks.py", line 34, in analyze_search_terms
    ids = analyzer.expand_ids(
  File "/home/user/pysrc/papers/analyzer.py", line 133, in expand_ids
    new_df = new_df.loc[[
  File "/home/user/pysrc/papers/analyzer.py", line 134, in <listcomp>
    mean - self.EXPAND_CITATIONS_SIGMA * std <= t <= mean + self.EXPAND_CITATIONS_SIGMA * std
TypeError: unsupported operand type(s) for -: 'tuple' and 'int'