Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
254bb9b3
Commit
254bb9b3
authored
Jun 04, 2021
by
Julia Garriga Ferrer
Browse files
[core][dataset] Use attribute transformation instead of magnification
parent
a55d83d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/dataset.py
View file @
254bb9b3
...
...
@@ -26,7 +26,7 @@
__authors__
=
[
"J. Garriga"
]
__license__
=
"MIT"
__date__
=
"0
1
/06/2021"
__date__
=
"0
4
/06/2021"
import
copy
import
glob
...
...
@@ -110,7 +110,7 @@ class Dataset():
self
.
running_data
=
None
self
.
moments_dims
=
{}
self
.
operations_state
=
numpy
.
zeros
(
len
(
Operation
))
self
.
_
magnific
ation
=
None
self
.
_
transform
ation
=
None
if
not
os
.
path
.
isdir
(
self
.
dir
+
"/"
+
treated
):
try
:
os
.
mkdir
(
self
.
dir
+
"/"
+
treated
)
...
...
@@ -165,12 +165,12 @@ class Dataset():
self
.
running_data
.
stop_operation
(
operation
)
@
property
def
magnific
ation
(
self
):
return
self
.
_
magnific
ation
def
transform
ation
(
self
):
return
self
.
_
transform
ation
@
magnific
ation
.
setter
def
magnific
ation
(
self
,
value
):
self
.
_
magnific
ation
=
value
@
transform
ation
.
setter
def
transform
ation
(
self
,
value
):
self
.
_
transform
ation
=
value
@
property
def
dir
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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