-
Notifications
You must be signed in to change notification settings - Fork 299
Closed
Description
Description of the problem
I am not able to plot the Tsview in version 1.5.1 and it works fine in version 1.3.3 and 1.3.2!
TypeError: timeseriesViewer.configure() missing 1 required positional argument: 'inps'
Full script that generated the error
%matplotlib notebook
import os
import matplotlib.pyplot as plt
from mintpy.tsview import timeseriesViewer
# visualization functions
def tsview(fname, yx=None, figsize_img=[5, 4], figsize_pts=[5, 2]):
"""Plot input file using tsview.py"""
cmd = 'tsview.py {} --ms 4 --noverbose --sub-lat 3690000.0 3705957.0 --sub-lon 450000.0 475428.0'.format(fname)
if yx is not None:
cmd += ' --yx {} {}'.format(yx[0], yx[1])
obj = timeseriesViewer(cmd)
obj.configure()
obj.figsize_img = figsize_img
obj.figsize_pts = figsize_pts
obj.plot()
return obj
ts_file = os.path.expanduser('/DESCENDING/D_P_78_F_/3N/timeseries_ERA5_demErr.h5')
tsview(ts_file, yx=(1273,2271), figsize_img=[8,6])Full error message
---> 21 tsview(ts_file, yx=(1273,2271), figsize_img=[8,6])
Cell In[1], line 14, in tsview(fname, yx, figsize_img, figsize_pts)
12 cmd += ' --yx {} {}'.format(yx[0], yx[1])
13 obj = timeseriesViewer(cmd)
---> 14 obj.configure()
15 obj.figsize_img = figsize_img
16 obj.figsize_pts = figsize_pts
TypeError: timeseriesViewer.configure() missing 1 required positional argument: 'inps'System information
- Operating system:
- Python environment:
- MintPy version:
- Your custom / default template file (if the bug is related to a specific dataset):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels