Commit 719e94de authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][dataset] Add magnification attribute

parent e6a322b1
......@@ -26,7 +26,7 @@
__authors__ = ["J. Garriga"]
__license__ = "MIT"
__date__ = "26/05/2021"
__date__ = "01/06/2021"
import copy
import glob
......@@ -110,6 +110,7 @@ class Dataset():
self.running_data = None
self.moments_dims = {}
self.operations_state = numpy.zeros(len(Operation))
self._magnification = None
if not os.path.isdir(self.dir + "/" + treated):
try:
os.mkdir(self.dir + "/" + treated)
......@@ -163,6 +164,14 @@ class Dataset():
if self.running_data is not None:
self.running_data.stop_operation(operation)
@property
def magnification(self):
return self._magnification
@magnification.setter
def magnification(self, value):
self._magnification = value
@property
def dir(self):
return self._dir
......
Markdown is supported
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