FLO-2DSoftware / qgis-flo-2d-plugin

A plugin for pre-processing/post-processing FLO-2D models
5 stars 7 forks source link

h5py reference #1381

Closed FLO-2DKaren closed 6 days ago

FLO-2DKaren commented 1 week ago

@FLO-2DJJ

Hi JJ,

Look through the code and modify any import h5py statement so that if h5py isn't installed, the plugin won't crash.

I think there is one in the storm drain editor widget that isn't referenced correctly. I actually think we can remove it completely. I don't think we need import h5py in that code.

Most of the import statements are already fixed.

FLO-2DJJ commented 1 week ago

Hi Karen,

Problem addressed in PR #1382.

Only the import h5py in _storm_drain_editorwidget.py could cause a crash. I wraped it in a try.. except block, although is doesn`t seam to be used. I left it there just in case.