Fix tests for smalle r python versions
@@ -530,7 +530,7 @@ class Audio(IterableMedia):
def isNumpyArray(data):
np = util.get_module(
- "numpy", required="Logging Raw Point cloud data requires numpy")
+ "numpy", required="Logging raw point cloud data requires numpy")
return isinstance(data, np.ndarray)
@@ -550,15 +550,15 @@ class Object3D(IterableMedia):
if hasattr(data, 'seek'):
data.seek(0)
self.object3D = data.read()
+ extension = kwargs.pop("file_type", None)
if hasattr(data, 'name'):
try:
extension = os.path.splitext(data.name)[1][1:]
except:
raise ValueError(
"File type must have an extension")
- elif hasattr(kwargs, "file_type"):
- extension = kwargs["file_type"]
- else:
+
+ if extension == None:
raise ValueError(
"Must pass file type keyword argument when using io objects.")
