Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UXO notebook: TypeError: object of type 'zip' has no len() #61

Open
prisae opened this issue Nov 15, 2019 · 0 comments
Open

UXO notebook: TypeError: object of type 'zip' has no len() #61

prisae opened this issue Nov 15, 2019 · 0 comments

Comments

@prisae
Copy link
Contributor

prisae commented Nov 15, 2019

TDEM_UXO.ipynb

After installing cvxopt in Python 3.7, the UXO-notebook still fails with the following error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/ipywidgets/widgets/interaction.py in update(self, *args)
    254                     value = widget.get_interact_value()
    255                     self.kwargs[widget._kwarg] = value
--> 256                 self.result = self.f(**self.kwargs)
    257                 show_inline_matplotlib_plots()
    258                 if self.auto_display and self.result is not None:

~/anaconda3/lib/python3.7/site-packages/geoscilabs/em/UXO_TEM_Widget.py in fcnImageUXOWidget(psi, theta, phi, k1, alpha1, beta1, gamma1, k2, alpha2, beta2, gamma2, k3, alpha3, beta3, gamma3, tn)
   1507     # Orientation plot
   1508     ax1.add_collection3d(
-> 1509         Poly3DCollection(v1, facecolors="k", linewidths=0.25, edgecolors="k")
   1510     )
   1511     ax1.add_collection3d(

~/anaconda3/lib/python3.7/site-packages/mpl_toolkits/mplot3d/art3d.py in __init__(self, verts, zsort, *args, **kwargs)
    595         and _edgecolors properties.
    596         """
--> 597         super().__init__(verts, *args, **kwargs)
    598         self.set_zsort(zsort)
    599         self._codes3d = None

~/anaconda3/lib/python3.7/site-packages/matplotlib/collections.py in __init__(self, verts, sizes, closed, **kwargs)
   1044         Collection.__init__(self, **kwargs)
   1045         self.set_sizes(sizes)
-> 1046         self.set_verts(verts, closed)
   1047         self.stale = True
   1048 

~/anaconda3/lib/python3.7/site-packages/mpl_toolkits/mplot3d/art3d.py in set_verts(self, verts, closed)
    650     def set_verts(self, verts, closed=True):
    651         """Set 3D vertices."""
--> 652         self.get_vector(verts)
    653         # 2D verts will be updated at draw time
    654         PolyCollection.set_verts(self, [], False)

~/anaconda3/lib/python3.7/site-packages/mpl_toolkits/mplot3d/art3d.py in get_vector(self, segments3d)
    634         for p in segments3d:
    635             points.extend(p)
--> 636             ei = si + len(p)
    637             segis.append((si, ei))
    638             si = ei

TypeError: object of type 'zip' has no len()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant