Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycroscopy
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vasudevan, Rama K.
pycroscopy
Commits
efb15673
Commit
efb15673
authored
7 years ago
by
Chris Smith
Browse files
Options
Downloads
Patches
Plain Diff
Updated BEodfRelaxationTranslator
Updated to new Translator class method requirements
parent
68b0122a
No related branches found
No related tags found
1 merge request
!75
Cnms dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pycroscopy/io/translators/be_odf_relaxation.py
+4
-4
4 additions, 4 deletions
pycroscopy/io/translators/be_odf_relaxation.py
with
4 additions
and
4 deletions
pycroscopy/io/translators/be_odf_relaxation.py
+
4
−
4
View file @
efb15673
...
...
@@ -43,7 +43,7 @@ class BEodfRelaxationTranslator(Translator):
Nothing
"""
(
folder_path
,
basename
)
=
path
.
split
(
file_path
)
(
basename
,
path_dict
)
=
self
.
_
_getF
ile
P
ath
s
(
file_path
)
(
basename
,
path_dict
)
=
self
.
_
parse_f
ile
_p
ath
(
file_path
)
h5_path
=
path
.
join
(
folder_path
,
basename
+
'
.h5
'
)
...
...
@@ -267,7 +267,7 @@ class BEodfRelaxationTranslator(Translator):
self
.
min_resp
=
np
.
zeros
(
shape
=
(
self
.
ds_main
.
shape
[
0
]),
dtype
=
np
.
float32
)
# Now read the raw data files:
self
.
_
_pixelR
ead
D
ata
(
path_dict
[
'
read_real
'
],
path_dict
[
'
read_imag
'
],
parm_dict
)
self
.
_
r
ead
_d
ata
(
path_dict
[
'
read_real
'
],
path_dict
[
'
read_imag
'
],
parm_dict
)
self
.
hdf
.
flush
()
generatePlotGroups
(
self
.
ds_main
,
self
.
hdf
,
self
.
mean_resp
,
folder_path
,
basename
,
...
...
@@ -280,7 +280,7 @@ class BEodfRelaxationTranslator(Translator):
return
h5_path
def
_
_pixelR
ead
D
ata
(
self
,
real_path
,
imag_path
,
parm_dict
):
def
_
r
ead
_d
ata
(
self
,
real_path
,
imag_path
,
parm_dict
):
"""
Reads the imaginary and real data files one pixel at a time andwrites to the H5 dataset.
...
...
@@ -362,7 +362,7 @@ class BEodfRelaxationTranslator(Translator):
bin_FFT
=
np
.
conjugate
(
FFT_full
[
bin_inds
]);
return
(
bin_inds
,
bin_w
,
bin_FFT
,
BE_wave
,
dc_amp_vec_full
)
def
_
_getF
ile
P
ath
s
(
self
,
data_filepath
):
def
_
parse_f
ile
_p
ath
(
self
,
data_filepath
):
"""
Returns the basename and a dictionary containing the absolute file paths for the
real and imaginary data files, text and mat parameter files in a dictionary
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment