Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when generating holes for a different window size #6

Open
julia-wrobel opened this issue Oct 7, 2024 · 0 comments
Open

Error when generating holes for a different window size #6

julia-wrobel opened this issue Oct 7, 2024 · 0 comments

Comments

@julia-wrobel
Copy link
Collaborator

julia-wrobel commented Oct 7, 2024

I want a window size with area = 1, but when I make this change in the code I get an error trying to generate holes. See code below that reproduces this error:


# changed window size to area = 1
custom_window = spatstat.geom::owin(xrange = c(0, 1), yrange = c(0, 1))

sim_object = CreateSimulationObject(sims = 1, cell_types = 1, window = custom_window)
sim_object = GenerateSpatialPattern(sim_object,
                                    lambda = 50000)


## if you want HOLES
sim_object = GenerateHoles(sim_object, step_size = 0.1, cores = 1)

The error produced is "Error in GenerateHoles(sim_object, step_size = 0.1, cores = 1) : x and y range outside simulation window limits".

Could you provide guidance on what arguments are needed for the GenerateHoles function to resolve this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant