Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomoscan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
tomotools
tomoscan
Commits
85392b6c
Commit
85392b6c
authored
2 months ago
by
Jerome Lesaint
Browse files
Options
Downloads
Patches
Plain Diff
fluoscan: doc fix.
parent
4a0ae205
No related branches found
Branches containing commit
No related tags found
1 merge request
!248
WIP: Add handling of 2D XRFDATA. Angles in 2D still to handle
Pipeline
#216254
passed
2 months ago
Stage: style
Stage: linting
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tomoscan/esrf/scan/fluoscan.py
+3
-3
3 additions, 3 deletions
tomoscan/esrf/scan/fluoscan.py
with
3 additions
and
3 deletions
tomoscan/esrf/scan/fluoscan.py
+
3
−
3
View file @
85392b6c
...
...
@@ -117,7 +117,7 @@ class FluoTomoScanBase:
def
get_metadata_from_h5_file
(
self
):
if
len
(
self
.
detected_folders
)
==
0
:
raise
ValueError
(
"
No
detecto
r found, unable to load metadata
"
)
raise
ValueError
(
"
No
folde
r found, unable to load metadata
"
)
h5_path
=
os
.
path
.
join
(
self
.
scan
,
self
.
detected_folders
[
0
])
h5_files
=
glob
.
glob1
(
h5_path
,
"
*.h5
"
)
if
len
(
h5_files
)
>
1
:
...
...
@@ -148,7 +148,7 @@ class FluoTomoScanBase:
def
detect_detectors
(
self
):
if
len
(
self
.
detected_folders
)
==
0
:
raise
ValueError
(
"
No
detecto
r found, unable to detect detectors
"
)
raise
ValueError
(
"
No
folde
r found, unable to detect detectors
"
)
proj_1_dir
=
os
.
path
.
join
(
self
.
scan
,
"
fluofit
"
,
self
.
detected_folders
[
0
])
detected_detectors
=
[]
file_names
=
glob
.
glob1
(
proj_1_dir
,
"
IMG_*area_density_ngmm2.tif
"
)
...
...
@@ -160,7 +160,7 @@ class FluoTomoScanBase:
def
detect_elements
(
self
):
if
len
(
self
.
detected_folders
)
==
0
:
raise
ValueError
(
"
No
detecto
r found, unable to detect elements
"
)
raise
ValueError
(
"
No
folde
r found, unable to detect elements
"
)
proj_1_dir
=
os
.
path
.
join
(
self
.
scan
,
"
fluofit
"
,
self
.
detected_folders
[
0
])
detector
=
self
.
detectors
[
0
]
file_names
=
glob
.
glob1
(
proj_1_dir
,
f
"
IMG_
{
detector
}
*area_density_ngmm2.tif
"
)
...
...
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