mediacloud / web-tools

The shared repository for Media Cloud web apps (Explorer, Source Manager, Topic Mapper)
https://tools.mediacloud.org
Apache License 2.0
64 stars 30 forks source link

Word Maps Coming Back Empty In Some Cases #289

Closed sandsfish closed 7 years ago

sandsfish commented 7 years ago

For some cases (I suspect maybe a topic that has had its word maps generated and then another snapshot is generated) the word map data is returning "empty".

What empty means is that the top 50 media sources seem to be pulled successfully (per the output of the text file of words used by each media sources) but no words are listed there.

The GEXF and JSON files are empty, save for the file format structure around where the data would be.

Here is the link to the page/context I downloaded these from:

https://topics.mediacloud.org/#/topics/1477/summary?focusId&snapshotId=1520&timespanId=54282

Attaching the files. wordMap-1477-54282.txt

GEXF:

JSON:

{"directed": true, "graph": [], "nodes": [], "links": [], "multigraph": false}

rahulbot commented 7 years ago

My gut says this is caused by #288, which I've fixed for the next release. We'll be in that code while working on #186, so we'll check it out then.

rahulbot commented 7 years ago

Yep - I deleted the cached files for this topic and then visited the summary page to regenerate them. Now they have content. I think #288 caused this, and thus think it is fixed now.