TopoPyScale icon indicating copy to clipboard operation
TopoPyScale copied to clipboard

topo_utils: FsmPlot() undefined variables

Open ArcticSnow opened this issue 1 year ago • 2 comments

def FsmPlot(df):
    df.plot(subplots=True)
    plt.title("Sample=" + str(sampleN) + " Elev=" + str(np.round(lp.elevation[sampleN])))
    plt.show()

undefined variables:

  • sampleN
  • lp

I comment out this function until fixed

ArcticSnow avatar May 11 '23 15:05 ArcticSnow

actually there are more:

./TopoPyScale/topo_utils.py:23:38: F821 undefined name 'resample_func'
        df = df.resample(freq).apply(resample_func)
                                     ^
./TopoPyScale/topo_utils.py:39:38: F821 undefined name 'resample_func'
        df = df.resample(freq).apply(resample_func)
                                     ^
./TopoPyScale/topo_utils.py:218:5: F821 undefined name 'FsmPlot'
    FsmPlot(df)
    ^
./TopoPyScale/topo_utils.py:222:5: F821 undefined name 'FsmPlot'
    FsmPlot(df)
    ^
4     F821 undefined name 'resample_func'

I'll comment out lines: 23, 39, 218 222 until fixed

ArcticSnow avatar May 11 '23 16:05 ArcticSnow

and many hard path in function: def val_plots():

ArcticSnow avatar May 11 '23 16:05 ArcticSnow