Commit 2b0c0c4f authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[gui][grainplot] Define dictionary of maps and write maps to file

parent 83d54ce4
Pipeline #51996 passed with stage
in 2 minutes and 16 seconds
......@@ -282,11 +282,22 @@ class GrainPlotWidget(qt.QMainWindow):
Loads the file from a FileDialog.
list_of_maps = {}
for axis, dim in self.dataset.dims:
list_of_maps[] = { self._moments[axis][0], self._moments[axis][1], self._moments[axis][2], self._moments[axis][3]
list_of_maps[] = hsv_to_rgb(self._computeMosaicity())
fileDialog = qt.QFileDialog()
# if fileDialog.exec_():
# write_maps(fileDialog.selectedFiles()[0], 'entry',)
\ No newline at end of file
if fileDialog.exec_():
write_maps(fileDialog.selectedFiles()[0], list_of_maps,, 'entry', 1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment