Skip to content

Commit

Permalink
MAINT: Disable Altair's MaxRows check
Browse files Browse the repository at this point in the history
To allow more than 5k rows (either features or samples) in a spec.

There *are* some limits we should probably enforce (see #58 for
details), but for the time being I think this is a decent temporary
solution.
  • Loading branch information
fedarko committed May 2, 2019
1 parent 86a83b6 commit 32a4069
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rankratioviz/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ def gen_visualization(V, processed_table, df_sample_metadata, output_dir):
index_path: a path to the index.html file for the output visualization.
This is needed when calling q2templates.render().
"""

# https://altair-viz.github.io/user_guide/faq.html#disabling-maxrows
alt.data_transformers.enable("default", max_rows=None)

logging.debug("Generating rank plot JSON.")
rank_plot_str = json.dumps(gen_rank_plot(V))
logging.debug("Generating sample plot JSON.")
Expand Down

0 comments on commit 32a4069

Please sign in to comment.