JMNocquet / pyeq36

Static and full time-dependent inversion of slip at faults from geodetic data
4 stars 0 forks source link

pyeq_plot_kinematics_shp.py does not work when model has a only 1 step #5

Open JMNocquet opened 3 years ago

JMNocquet commented 3 years ago

File "/usr/local/geodesy/anaconda38/bin/pyeq_plot_kinematics_shp.py", line 104, in pyeq.lib.plot.make_plot( model ) File "/usr/local/geodesy/anaconda38/lib/python3.8/site-packages/pyeq/lib/plot/make_plot.py", line 50, in make_plot pyeq.lib.plot.plot_model( model , interpolation = interpolation ) File "/usr/local/geodesy/anaconda38/lib/python3.8/site-packages/pyeq/lib/plot/plot_model.py", line 137, in plot_model H_title[i] = ("%s -- time step %04d \n\n day %04d - %s %s - Mo=%s N.m" % ( model.name , i, int(float((stf[i,0]))), stf[i,2] , stf[i,3], stf[i,1] )) IndexError: too many indices for array