Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Dec 16, 2022
1 parent 83a92d6 commit 8eefe34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stimuli/components/__init__.py
Expand Up @@ -129,7 +129,6 @@ def mask_elements(
# Mark elements with integer idx-value
mask = np.zeros(base["shape"], dtype=int)
for idx, edge in zip(reversed(range(len(edges))), reversed(edges)):
edge = np.round(edge, 10)
mask[distances <= edge] = int(idx + 1)

# Assemble output
Expand Down Expand Up @@ -284,8 +283,8 @@ def resolve_grating_params(
)

# Accumulate edges of phases
edges = [*itertools.accumulate(itertools.repeat(phase_width, int(np.ceil(n_phases))))]
if "period" == "ignore":
edges = [*itertools.accumulate(itertools.repeat(phase_width, int(n_phases)))]
if period == "ignore":
edges += [visual_angle]

return {
Expand Down

0 comments on commit 8eefe34

Please sign in to comment.