Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

ZeroDivisionError: float division by zero #220

Description

@Simran-Sodhi

Hi,

I have been getting this error: ZeroDivisionError: float division by zero
when trying to run the following code:
de.test.wald( data=adata_human, gene_names=adata_human.var_names, formula_loc="~ 1 + palantir_pseudotime_int", factor_loc_totest="palantir_pseudotime_int", as_numeric=["palantir_pseudotime_int"] )
Here is the complete error log: zero_division_error.pdf
I am getting the same error even when I use a discrete variable instead of a continuous one and when I use sample single-cell data from the Scanpy datasets (scanpy.datasets.ebi_expression_atlas(accession = "E-GEOD-98816"))
`
Current Versions:

  • numpy==1.21.6
  • anndata==0.8.0
  • pandas==1.4.3
  • scanpy==1.9.1
  • diffxpy.api==v0.7.4+21.g12f1286

Could you please look into this? Thanks for your help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions