你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Added explicit file close calls.
这个提交包含在:
@@ -57,6 +57,7 @@ def get_output_data(filename, rxnumber, rxcomponent):
|
|||||||
|
|
||||||
outputdata = f[path + '/' + rxcomponent]
|
outputdata = f[path + '/' + rxcomponent]
|
||||||
outputdata = np.array(outputdata)
|
outputdata = np.array(outputdata)
|
||||||
|
f.close()
|
||||||
|
|
||||||
return outputdata, dt
|
return outputdata, dt
|
||||||
|
|
||||||
|
@@ -219,6 +219,8 @@ def mpl_plot(filename, outputs=Rx.defaultoutputs, fft=False):
|
|||||||
# fig.savefig(os.path.splitext(os.path.abspath(filename))[0] + '_rx' + str(rx) + '.pdf', dpi=None, format='pdf', bbox_inches='tight', pad_inches=0.1)
|
# fig.savefig(os.path.splitext(os.path.abspath(filename))[0] + '_rx' + str(rx) + '.pdf', dpi=None, format='pdf', bbox_inches='tight', pad_inches=0.1)
|
||||||
# fig.savefig(os.path.splitext(os.path.abspath(filename))[0] + '_rx' + str(rx) + '.png', dpi=150, format='png', bbox_inches='tight', pad_inches=0.1)
|
# fig.savefig(os.path.splitext(os.path.abspath(filename))[0] + '_rx' + str(rx) + '.png', dpi=150, format='png', bbox_inches='tight', pad_inches=0.1)
|
||||||
|
|
||||||
|
f.close()
|
||||||
|
|
||||||
return plt
|
return plt
|
||||||
|
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户