Commit fb8d1b46 authored by payno's avatar payno
Browse files

[SpecInputInformation] add assert on dimensions: should be an iterable

parent 84d645c4
......@@ -31,6 +31,7 @@ __date__ = "25/01/2021"
from est.core.types import Dim
from est.units import ur
from import DataUrl
from typing import Iterable
class SpecInputInformation:
......@@ -333,7 +334,8 @@ class InputInformation:
return DataUrl(path=url)
def load_dimensions(dimensions):
def load_dimensions(dimensions: Iterable):
assert isinstance(dimensions, Iterable)
return tuple([Dim.from_value(dim) for dim in dimensions])
return InputInformation(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment