from pattern_design.pattern_interface import IPatternGenerator
import numpy as np

class ExampleGenerator(IPatternGenerator):

    def generate_patterns(m,n,d,b):
        patterns = np.zeros((m,n), dtype='bool')
        for i in range(n):
            patterns[i % m][i] = 1
        return patterns

    def get_name():
        return "Example Generator"

fa950d7d9f5d1c4dbe1830e58306e4f695c0bbd4
<mask token>


class ExampleGenerator(IPatternGenerator):
    <mask token>
    <mask token>

<mask token>


class ExampleGenerator(IPatternGenerator):
    <mask token>

    def get_name():
        return 'Example Generator'

<mask token>


class ExampleGenerator(IPatternGenerator):

    def generate_patterns(m, n, d, b):
        patterns = np.zeros((m, n), dtype='bool')
        for i in range(n):
            patterns[i % m][i] = 1
        return patterns

    def get_name():
        return 'Example Generator'

from pattern_design.pattern_interface import IPatternGenerator
import numpy as np


class ExampleGenerator(IPatternGenerator):

    def generate_patterns(m, n, d, b):
        patterns = np.zeros((m, n), dtype='bool')
        for i in range(n):
            patterns[i % m][i] = 1
        return patterns

    def get_name():
        return 'Example Generator'

from pattern_design.pattern_interface import IPatternGenerator
import numpy as np

class ExampleGenerator(IPatternGenerator):

    def generate_patterns(m,n,d,b):
        patterns = np.zeros((m,n), dtype='bool')
        for i in range(n):
            patterns[i % m][i] = 1
        return patterns

    def get_name():
        return "Example Generator"
