Skip to content

Running count metric & jump method OverflowError: cannot convert float infinity to integer #2

@caviri

Description

@caviri

Hello @hongyeehh, I'm getting this error when running Count Metric & Jump Method:

Running count metric & jump method
Values less than or equal to 0 in data. Throwing out 0 or negative values
/usr/local/lib/python3.10/dist-packages/powerlaw.py:1965: RuntimeWarning: divide by zero encountered in scalar divide
  xmax2=xmax/xmin
Traceback (most recent call last):
  File "/odtp/odtp-workdir/mobility-metrics/mobmetric/scripts/run_metrics.py", line 84, in <module>
    powerlaw.plot_pdf(metric, label="data")
  File "/usr/local/lib/python3.10/dist-packages/powerlaw.py", line 2083, in plot_pdf
    edges, hist = pdf(data, linear_bins=linear_bins, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/powerlaw.py", line 1978, in pdf
    number_of_bins = ceil((log_max_size-log_min_size)*10)
OverflowError: cannot convert float infinity to integer
mv: cannot stat '/odtp/odtp-workdir/mobility-metrics/data/output/jump.png': No such file or directory

Here, I dropped the input files and the command I'm using:

mobility-metrics/mobmetric/scripts/run_metrics.py count jump dtepr

odtp-output.zip
odtp-input.zip

Version of the tool: irmlma/mobility-metrics@7c1e475

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions