Skip to content

Commit

Permalink
trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wiheto committed Nov 30, 2022
1 parent 708826b commit fb4bc40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions netplotbrain/plotting/plot_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def _plot_template_style_glass(ax, data, template, **kwargs):
else:
alpha_per_point = (border_vals - border_vals.min()) / (border_vals.max() - border_vals.min())

ax.scatter(points[0], points[1], points[2],
s=glass_kwargs['template_glass_pointsize'],
alpha=alpha_per_point * glass_kwargs['template_glass_maxalpha'],
ax.scatter(points[0], points[1], points[2],
s=glass_kwargs['template_glass_pointsize'],
alpha=alpha_per_point * glass_kwargs['template_glass_maxalpha'],
color=glass_kwargs['template_color'])


Expand Down Expand Up @@ -174,7 +174,7 @@ def _plot_template(ax, style='filled', template='MNI152NLin2009cAsym',
# Get the netplotbrian path
with open(netplotpath[0] + '/templatesettings/template_get_kwargs.json', 'r') as f:
tf_kwargs_all = json.load(f)
# If cohort is in the name as template=templateame_cohort-X, split to template=tempaltename, and 'cohort' is in tf_kwargs
# If cohort is in the name as template=templateame_cohort-X, split to template=tempaltename, and 'cohort' is in tf_kwargs
cohort = None
if '_cohort-' in template:
cohort = template.split('cohort-')[1]
Expand All @@ -190,7 +190,7 @@ def _plot_template(ax, style='filled', template='MNI152NLin2009cAsym',
# Get template
template_stylename = template
template = tf.get(template=template, **tf_kwargs)

# If template is now a list then templateflow found multiple entries.
if isinstance(template, list):
print('More than 1 template found. Please provide more arguments to specify the template you want.')
Expand Down

0 comments on commit fb4bc40

Please sign in to comment.