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
tomotools
nxtomomill
Commits
3b39af12
Unverified
Commit
3b39af12
authored
Nov 29, 2021
by
Henri Payno
Browse files
edf2nx: adapt to deprecation warning code by trying to import get_flats_url function first
parent
529bb888
Changes
1
Hide whitespace changes
Inline
Side-by-side
nxtomomill/converter/edf/edfconverter.py
View file @
3b39af12
...
...
@@ -152,7 +152,11 @@ def edf_to_nx(
_edf_to_ignore
.
append
(
"HST"
)
else
:
_edf_to_ignore
.
remove
(
"HST"
)
refs_urls
=
scan
.
get_refs_url
(
try
:
get_flats_url
=
scan
.
get_flats_url
except
ImportError
:
get_flats_url
=
scan
.
get_refs_url
refs_urls
=
get_flats_url
(
scan_path
=
scan
.
path
,
prefix
=
refs_to_find
,
ignore
=
_edf_to_ignore
)
if
len
(
refs_urls
)
>
0
:
...
...
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