Closed fedarko closed 3 years ago
Seems like uploading to McHelper failed again? Just tried to rerun the job, which should make it a bit clearer if this is an intermittent issue or not.
The following artifacts were built for this PR: empire-biplot.qzv, empire.qzv, empress-tree.qzv, just-fm.qzv, plain.qzv
Looks like it is an intermitent issue. Thanks so much for the PR!
On Jul 29, 2021, at 6:05 PM, Penguin McHelper @.***> wrote:
The following artifacts were built for this PR: empire-biplot.qzv, empire.qzv, empress-tree.qzv, just-fm.qzv, plain.qzv
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks @fedarko
Noticed while going through #530, although this isn't really in scope of that!
The make-dev-page script uses the condition of "if one of
{tree, table, sample metadata}
is None" to determine when to load the default moving pictures data. Since feature metadata isn't checked, this means that the bottom line in the code below will fail withAttributeError: 'NoneType' object has no attribute 'to_dataframe'
when only passing the tree, table, and sample metadata to the script:https://github.com/biocore/empress/blob/3d60a2941bea3837dc76750f305b20e212a9c828/tests/python/make-dev-page.py#L46-L71
This PR fixes this, allowing the generation of dev pages without feature metadata.
One thing worth noting is that I don't know if it's possible currently (using make-dev-page.py) to pass an ordination without passing in feature metadata, or to pass in feature metadata without passing in a table / sample metadata -- since these arguments seem to be based on position. (It's totally possible to do this sort of stuff when actually running Empress normally, as shown in e.g. #485, but IDK if replicating this situation is possible in make-dev-page.py. It's not a big deal since this script is only used for testing, though.)