Skip to content

v0.3.5

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:02
37bcb4d

Fixed

  • Citation exports are written the same whether a list column was built in memory or read from Parquet. Parquet returns list columns as numpy arrays, and the exports expected Python lists. Affected were all runs that read a table back from Parquet before the citations stage:

    • run variants (--from-run) started at translate or a later stage, which load their tables from Parquet;
    • runs with author disambiguation, where the publication, reference and author tables come back from that step as Parquet files;
    • runs from an ADS search without --from-run, started at author_disambiguation or a later stage (--from <stage> or run.start_stage), which take their tables from the cache.

    A run in one go, from search or from external source input, without author disambiguation was not affected. In the affected runs:

    • With citations.output_format set to graphology or all, the run stopped at the Graphology export with the message can only convert an array of size 1 to a Python scalar.
    • With external source input, the run stopped at the Web of Science export when Affiliation or Keywords held a list, with a message that begins The truth value of an. From 0.3.1 on, the command line shows this message and the one of the Graphology export after Config error:.
    • GEXF files and nodes.csv held lists in numpy's notation (['A' 'B'] instead of ['A', 'B']), and a list with more than 1,000 entries was cut down to a few entries and .... A variant started at citations wrote every list column this way. The other affected runs wrote Author this way and, depending on the run, tokens in nodes.csv, the aliases of the author nodes, Affiliation, Keywords and Category from external source input, and in 0.1.0 and 0.1.1 References.

    This corrects the 0.3.4 notes, which said that --from-run works again with runs saved by 0.2.0 to 0.3.1. Since 0.3.4 the configs of these runs load again, but a variant could still stop at the citations stage or write its lists as described above.

    List columns of text now come back from Parquet as Python lists. Which nodes and edges a network has, and the edge weights, were correct throughout; only list-valued node attributes were affected. Variants are affected since 0.2.0, the other runs since 0.1.0. To get corrected files for a run saved by 0.2.0 or later, run ads-bib run --from-run <run> --from citations with 0.3.5; the files are written to the run folder of the new variant, the old files stay as they are.

  • The fingerprint that the author disambiguation cache is compared with is now the same for a list and for the array Parquet returns. Before, the two differed, so author disambiguation could run again although a saved result fitted; and a change in the middle of a list with more than 1,000 entries went unnoticed when the list was an array, so an outdated result could be reused. After the update, author disambiguation may run once more where an older version saved its result from tables read from Parquet.