Skip to content

Commit

Permalink
fix: underscore snakecase notation to hyphenated snakecase for diffex…
Browse files Browse the repository at this point in the history
…p-may-be-slow (#2687)
  • Loading branch information
tihuan authored Sep 5, 2024
1 parent 7bf5add commit c425d2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/common/config/dataset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def handle_diffexp(self, context):
self.validate_correct_type_of_configuration_attribute("diffexp__top_n", int)

data_adaptor = self.get_data_adaptor()
if self.diffexp__enable and data_adaptor.parameters.get("diffexp_may_be_slow", False):
if self.diffexp__enable and data_adaptor.parameters.get("diffexp-may-be-slow", False):
context["messagefn"](
"CAUTION: due to the size of your dataset, " "running differential expression may take longer or fail."
)
Expand Down
2 changes: 1 addition & 1 deletion server/data_anndata/anndata_adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _validate_and_initialize(self):
# heuristic
n_values = self.data.shape[0] * self.data.shape[1]
if (n_values > 1e8 and self.server_config.adaptor__anndata_adaptor__backed is True) or (n_values > 5e8):
self.parameters.update({"diffexp_may_be_slow": True})
self.parameters.update({"diffexp-may-be-slow": True})

def _is_valid_layout(self, arr):
"""return True if this layout data is a valid array for front-end presentation:
Expand Down

0 comments on commit c425d2e

Please sign in to comment.