Skip to content

Error when trying to use a neighborhood of size 4 (r=1.5) #31

@dimoralesb

Description

@dimoralesb

Hi, I am trying to test the evolution of the automaton with a neighborhood of size 4 given by r=1.5, but I get the following error:

TypeError: slice indices must be integers or None or have an __index__ method

This is the code to reproduce it:

cellular_automaton = cpl.init_random(8)
rule_number = 73
cellular_automaton = cpl.evolve(cellular_automaton, timesteps = 6,
                                apply_rule = lambda n, c, t: cpl.binary_rule(n, rule_number, scheme='nks'),  r = 1.5)
print(cellular_automaton)

Attached is also an image of the error:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions