ArcticSnow / TopoPyScale

TopoPyScale: a Python library to perform simplistic climate downscaling at the hillslope scale
https://topopyscale.readthedocs.io
MIT License
39 stars 9 forks source link

topo_utils: FsmPlot() undefined variables #77

Open ArcticSnow opened 1 year ago

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

undefined variables:

I comment out this function until fixed

ArcticSnow commented 1 year ago

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 commented 1 year ago

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