Skip to content

tsview notebook example error missing required inps in v1.5.1 #977

@NKakar

Description

@NKakar

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions