Skip to content

Commit 080ec7d

Browse files
committed
replace raintotal6h-timedist postprocessing by standard processing
1 parent 621d480 commit 080ec7d

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

postprocessing/rain1_fsv_cvut_cz_services_wps/raintotal6h-timedist.py

-20
This file was deleted.

wps_dialog.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def processOutput(self, response):
454454
layer = self.getVectorLayer(item.filepath, layer_name)
455455
if layer is None or not layer.isValid():
456456
layer = self.getRasterLayer(item.filepath, layer_name)
457-
if (layer is None or not layer.isValid()) and item.mimetype == 'application/csv':
457+
if (layer is None or not layer.isValid()) and item.mimetype in ('application/csv', 'text/csv'):
458458
layer = self.getCsvLayer(item.filepath, layer_name)
459459
if layer is not None and layer.isValid():
460460
QgsProject.instance().addMapLayer(layer)
@@ -488,8 +488,6 @@ def onExecuteProcessResponse(self, response):
488488
)
489489

490490
def appendFileContentIntoLog(self, item):
491-
# with (open(item.filepath, "r")) as f:
492-
# self.appendLogMessage(str(f.read()))
493491
self.appendLogMessage("File: {} (mimetype: {})".format(item.filepath, item.mimetype))
494492

495493
def appendLogMessage(self, msg):

0 commit comments

Comments
 (0)