Open tomsail opened 7 months ago
I think the problem is with the test if dem.exists()
.
dem should be an instance with dem.Dataset
as the xarray
object. On the other hand the dem_source
is an attribute of the model
class indicating the source for the dem.
If you want to check if the Dataset exists in the instance then maybe:
'Dataset' in dem.__dict__
That might work, but hasattr(dem, "Dataset")
is probably a little bit cleaner.
I have a problem at this line when using the sizing from oceanmesh:
This is cause by the update of this line :
is that line really needed ? since we already have the variable self.dem attributed?
Problem mentioned in #114 but I am opening a new issue here.
FIY I removed that line in the telemac.py (coming soon on my fork)