Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
719e94de
Commit
719e94de
authored
Jun 01, 2021
by
Julia Garriga Ferrer
Browse files
[core][dataset] Add magnification attribute
parent
e6a322b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/dataset.py
View file @
719e94de
...
...
@@ -26,7 +26,7 @@
__authors__
=
[
"J. Garriga"
]
__license__
=
"MIT"
__date__
=
"
26
/0
5
/2021"
__date__
=
"
01
/0
6
/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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment