-
Notifications
You must be signed in to change notification settings - Fork 0
Misc bugs #62
Copy link
Copy link
Open
Description
⛔️ 4 B1 Mapping/03-Filtering/Notebooks/Figure-4-3-1.ipynb An exception occurred during code execution, halting further execution:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[1], line 221
210 masks_concat = np.concatenate((mask, mask), axis=1)
212 trace_da_raw = go.Heatmap(x = xAxis_raw,
213 y = yAxis,
214 z=masks_concat*da_acqs,
(...)
218 showscale = False,
219 visible=True)
--> 221 trace_da_b1 = go.Heatmap(x = xAxis_b1,
222 y = yAxis,
223 z=mask*im_da_b1,
224 zmin=0.7,
225 zmax=1.3,
226 colorscale='RdBu',
227 colorbar={"title":
'B<sub>1</sub>',
228 'titlefont': dict(
229 family='Times New Roman',
230 size=26,
231 )
232 },
233 xaxis='x2',
234 yaxis='y2',
235 visible=True)
237 trace_afi_raw = go.Heatmap(x = xAxis_raw,
238 y = yAxis,
239 z=masks_concat*afi_acqs,
(...)
243 showscale = False,
244 visible=False)
246 trace_afi_b1 = go.Heatmap(x = xAxis_b1,
247 y = yAxis,
248 z=mask*im_afi_b1,
(...)
259 yaxis='y2',
260 visible=False)
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/graph_objs/_heatmap.py:2551, in Heatmap.__init__(self, arg, autocolorscale, coloraxis, colorbar,
colorscale, connectgaps, customdata, customdatasrc, dx, dy, hoverinfo, hoverinfosrc, hoverlabel, hoverongaps, hovertemplate, hovertemplatefallback, hovertemplatesrc, hovertext,
hovertextsrc, ids, idssrc, legend, legendgroup, legendgrouptitle, legendrank, legendwidth, meta, metasrc, name, opacity, reversescale, showlegend, showscale, stream, text, textfont,
textsrc, texttemplate, texttemplatefallback, transpose, uid, uirevision, visible, x, x0, xaxis, xcalendar, xgap, xhoverformat, xperiod, xperiod0, xperiodalignment, xsrc, xtype, y, y0,
yaxis, ycalendar, ygap, yhoverformat, yperiod, yperiod0, yperiodalignment, ysrc, ytype, z, zauto, zhoverformat, zmax, zmid, zmin, zorder, zsmooth, zsrc, **kwargs)
2549 self._set_property("autocolorscale", arg, autocolorscale)
2550 self._set_property("coloraxis", arg, coloraxis)
-> 2551 self._set_property("colorbar",
arg, colorbar)
2552 self._set_property("colorscale", arg, colorscale)
2553 self._set_property("connectgaps", arg, connectgaps)
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:4403, in BasePlotlyType._set_property(self, name, arg, provided)
4397 def _set_property(self, name, arg, provided):
4398 """
4399 Initialize a property of this object using the provided value
4400 or a value popped from the arguments dictionary. If neither
4401 is available, do not set the property.
4402 """
-> 4403 _set_property_provided_value(self, name, arg,
provided)
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:398, in _set_property_provided_value(obj, name, arg, provided)
396 val = provided if provided is not None else val
397 if val is not None:
--> 398 obj[name] = val
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:4924, in BasePlotlyType.__setitem__(self, prop, value)
4922 # ### Handle compound property ###
4923 if isinstance(validator, CompoundValidator):
-> 4924 self._set_compound_prop(prop, value)
4926 # ### Handle compound array property ###
4927 elif isinstance(validator, (CompoundArrayValidator, BaseDataValidator)):
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:5335, in BasePlotlyType._set_compound_prop(self, prop, val)
5332 # Import value
5333 # ------------
5334 validator = self._get_validator(prop)
-> 5335 val = validator.validate_coerce(val,
skip_invalid=self._skip_invalid)
5337 # Save deep copies of current and new states
5338 # ------------------------------------------
5339 curr_val = self._compound_props.get(prop, None)
File /srv/conda/envs/notebook/lib/python3.10/site-packages/_plotly_utils/basevalidators.py:2468, in CompoundValidator.validate_coerce(self, v, skip_invalid,
_validate)
2465 v = self.data_class()
2467 elif isinstance(v, dict):
-> 2468 v = self.data_class(v,
skip_invalid=skip_invalid, _validate=_validate)
2470 elif isinstance(v, self.data_class):
2471 # Copy object
2472 v = self.data_class(v)
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/graph_objs/heatmap/_colorbar.py:1738, in ColorBar.__init__(self, arg, bgcolor, bordercolor,
borderwidth, dtick, exponentformat, labelalias, len, lenmode, minexponent, nticks, orientation, outlinecolor, outlinewidth, separatethousands, showexponent, showticklabels,
showtickprefix, showticksuffix, thickness, thicknessmode, tick0, tickangle, tickcolor, tickfont, tickformat, tickformatstops, tickformatstopdefaults, ticklabeloverflow,
ticklabelposition, ticklabelstep, ticklen, tickmode, tickprefix, ticks, ticksuffix, ticktext, ticktextsrc, tickvals, tickvalssrc, tickwidth, title, x, xanchor, xpad, xref, y, yanchor,
ypad, yref, **kwargs)
1736 self._set_property("ypad", arg, ypad)
1737 self._set_property("yref", arg, yref)
-> 1738
self._process_kwargs(**dict(arg,
**kwargs))
1739 self._skip_invalid = False
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:4451, in BasePlotlyType._process_kwargs(self, **kwargs)
4449 self[k] = v
4450 elif not self._skip_invalid:
-> 4451 raise err
ValueError: Invalid property specified for object of type plotly.graph_objs.heatmap.ColorBar: 'titlefont'
Did you mean "tickfont"?
⛔️ 5 B0 Mapping/2 Dual echo B0 mapping/Notebooks/Figure-5-2-2.ipynb An exception occurred during code execution, halting further execution:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[1], line 145
141 fig.add_trace(go.Heatmap(z=np.rot90(phase, k=-1),
visible=False, coloraxis = "coloraxis"))
143 fig.update_layout(coloraxis = {'colorscale':'gray'},
144 coloraxis_cmin=zmin, coloraxis_cmax=zmax)
--> 145 fig.update_coloraxes(
146
colorbar=dict(title="Rad",
147 titleside="top",
148 tickmode="array",
149 tickvals=[-math.pi,
0, math.pi-0.01],
150 ticktext =
[f"-{PI_UNICODE}",
0,
f'{PI_UNICODE}']))
152 echo_times_str = [f"{time:.2}"
for time in echo_times]
153 steps = []
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/graph_objs/_figure.py:22500, in Figure.update_coloraxes(self, patch, selector, overwrite, row,
col, **kwargs)
22461 """
22462 Perform a property update operation on all coloraxis objects
22463 that satisfy the specified selection criteria
(...)
22497 Returns the Figure object that the method was called on
22498 """
22499 for obj in self.select_coloraxes(selector=selector, row=row,
col=col):
> 22500 obj.update(patch, overwrite=overwrite,
**kwargs)
22502 return self
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:5195, in BasePlotlyType.update(self, dict1, overwrite, **kwargs)
5193 with self.figure.batch_update():
5194 BaseFigure._perform_update(self, dict1, overwrite=overwrite)
-> 5195 BaseFigure._perform_update(self, kwargs,
overwrite=overwrite)
5196 else:
5197 BaseFigure._perform_update(self, dict1, overwrite=overwrite)
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:3971, in BaseFigure._perform_update(plotly_obj, update_obj, overwrite)
3966 validator = plotly_obj._get_prop_validator(key)
3968 if isinstance(validator, CompoundValidator) and isinstance(val, dict):
3969 # Update compound objects recursively
3970 # plotly_obj[key].update(val)
-> 3971 BaseFigure._perform_update(plotly_obj[key], val)
3972 elif isinstance(validator, CompoundArrayValidator):
3973 if plotly_obj[key]:
3974 # plotly_obj has an existing non-empty array for key
3975 # In this case we merge val into the existing elements
File /srv/conda/envs/notebook/lib/python3.10/site-packages/plotly/basedatatypes.py:3949, in BaseFigure._perform_update(plotly_obj, update_obj, overwrite)
3947 err = _check_path_in_prop_tree(plotly_obj, key, error_cast=ValueError)
3948 if err is not None:
-> 3949 raise err
3951 # Convert update_obj to dict
3952 # --------------------------
3953 if isinstance(update_obj, BasePlotlyType):
ValueError: Invalid property specified for object of type plotly.graph_objs.layout.coloraxis.ColorBar: 'titleside'
Also gets stuck at:
⛔️ 5 B0 Mapping/1 B0 Inhomogeneities/Notebooks/Figure-5-1-3.ipynb An exception occurred during code execution, halting further execution:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[1], line 119
116 local_field_cyl = nib.load(data_dir / "field_simulations" /
"cylinder" / "local_field.nii.gz").get_fdata()
118 fig = make_subplots(rows=1, cols=3, shared_xaxes=False,
horizontal_spacing=0.13, vertical_spacing = 0.12,
subplot_titles=(f"Susceptibility distribution
({CHI_UNICODE})", "Simulated B0 map",
"Simulated B0 map<br>no background field"), specs=[[{"type":
"Heatmap"}, {"type": "Heatmap"},
{"type": "Heatmap"}]])
Not sure if this is due to a missing data or something.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels