[2021-10-11 20:32:52,923: ERROR/ForkPoolWorker-8] Task analyze_pubmed_search_files[a6d741fe-4b10-4e92-95ed-3d70dc278ebd] raised unexpected: IndexError('shape mismatch: indexing arrays could not be broadcast together with shapes (17778,) (10713,) ')
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
File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/celery/app/trace.py", line 650, in __protected_call__
File "/mnt/stripe/shpynov/pubtrends/pysrc/celery/tasks_main.py", line 167, in analyze_pubmed_search_files
analyzer.analyze_ids(ids, 'Pubmed', query, limit, task=current_task)
File "/mnt/stripe/shpynov/pubtrends/pysrc/papers/analyzer_files.py", line 198, in analyze_ids
similarity_df, topics = topics_similarity_data(
File "/mnt/stripe/shpynov/pubtrends/pysrc/papers/analyzer_files.py", line 428, in topics_similarity_data
similarity_matrix = compute_topics_similarity_matrix(papers_embeddings, comps)
File "/mnt/stripe/shpynov/pubtrends/pysrc/papers/analysis/topics.py", line 22, in compute_topics_similarity_matrix
mean_similarity = np.mean(cos_similarities[np.flatnonzero(cos_similarities[i_indx, j_indx])])
IndexError: shape mismatch: indexing arrays could not be broadcast together with shapes (17778,) (10713,)