When the model contains only one row, DatasetCrossSection gives an error. This code:
import nlmod
ds = nlmod.get_ds([0, 1000, 0, 100], delr=100)
line = [(0, 50), (1000, 50)]
dcs = nlmod.plot.DatasetCrossSection(ds, line)
gives the following error
Traceback (most recent call last):
Cell In[5], line 1
dcs = nlmod.plot.DatasetCrossSection(ds, line)
File ~\Documents\GitHub\nlmod\nlmod\plot\dcs.py:92 in __init__
xys = self.line_intersect_grid(line)
File ~\Documents\GitHub\nlmod\nlmod\plot\dcs.py:154 in line_intersect_grid
gr_line = LineString(zip([x, x], self.yedge[[0, -1]]))
IndexError: index 0 is out of bounds for axis 0 with size 0