Skip to content

Issues with generating the cross k function maps #2

Description

@juncaoker0r0

Dear Author,

I seem to have encountered a problem while running the python file 2_calc_kmaps.py. It does not read the elements from the list. I have searched to convert it with rpy2 localconverter but still seem to fail. How shall I proceed. Thank you in advance

Traceback (most recent call last):
File "/MCSpatNet/data_prepare/2_calc_kmaps.py", line 85, in
cells_ppp = ppp(cells_x, cells_y, cells_mark) # the point pattern in R object
File "../spatial_analysis_utils_v2_sh.py", line 56, in ppp
window_xrange=rfc([robj.r.min(rfc(x)), robj.r.max(rfc(x))])
File "python3.6/site-packages/rpy2/robjects/vectors.py", line 492, in init
obj = FloatSexpVector(obj)
ValueError: Error while trying to convert element 0 to a double.

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