Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Live integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container 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
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Koziej Lab
X-ray Diffraction
PDF
Live integration
Commits
4774769f
Commit
4774769f
authored
3 weeks ago
by
Gröne, Tjark Leon Raphael
Browse files
Options
Downloads
Patches
Plain Diff
Update file maxwell_integrate_to_h5.py
parent
bed9e2c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
maxwell_integrate_to_h5.py
+3
-3
3 additions, 3 deletions
maxwell_integrate_to_h5.py
with
3 additions
and
3 deletions
maxwell_integrate_to_h5.py
+
3
−
3
View file @
4774769f
...
@@ -226,12 +226,12 @@ if __name__ == '__main__':
...
@@ -226,12 +226,12 @@ if __name__ == '__main__':
raise
ValueError
(
"
POLARIZATION must be a float between 0 and 1
"
)
raise
ValueError
(
"
POLARIZATION must be a float between 0 and 1
"
)
if
not
sys
.
argv
[
7
].
isdigit
():
if
not
sys
.
argv
[
7
].
isdigit
():
raise
ValueError
(
"
NPT must be a positive integer
"
)
raise
ValueError
(
"
NPT must be a positive integer
"
)
if
not
sys
.
argv
[
8
]
.
isalpha
(
):
if
not
isinstance
(
sys
.
argv
[
8
]
,
str
):
raise
ValueError
(
"
UNIT must be a string representing the unit (e.g.,
'
q_A^-1
'
,
'
q_nm^-1
'
,
'
q_ang^-1
'
)
"
)
raise
ValueError
(
"
UNIT must be a string representing the unit (e.g.,
'
q_A^-1
'
,
'
q_nm^-1
'
,
'
q_ang^-1
'
)
"
)
if
not
sys
.
argv
[
9
].
isalpha
():
if
not
sys
.
argv
[
9
].
isalpha
():
raise
ValueError
(
"
ERRORMODE must be a string representing the error model (e.g.,
'
poisson
'
,
'
azimuthal
'
,
'
none
'
)
"
)
raise
ValueError
(
"
ERRORMODE must be a string representing the error model (e.g.,
'
poisson
'
,
'
azimuthal
'
,
'
none
'
)
"
)
if
not
sys
.
argv
[
10
]
.
isalpha
(
):
if
not
isinstance
(
sys
.
argv
[
10
]
,
str
):
raise
ValueError
(
"
DATATYPE must be a string representing the data type (e.g.,
'
tif
'
,
'
tiff
'
)
"
)
raise
ValueError
(
"
DATATYPE must be a string representing the data type (e.g.,
'
tif
'
,
'
tiff
'
)
"
)
...
@@ -247,7 +247,7 @@ if __name__ == '__main__':
...
@@ -247,7 +247,7 @@ if __name__ == '__main__':
DATATYPE
=
str
(
sys
.
argv
[
10
]).
lower
()
DATATYPE
=
str
(
sys
.
argv
[
10
]).
lower
()
FORBIDDEN
=
sys
.
argv
[
11
].
split
(
'
,
'
)
if
len
(
sys
.
argv
)
>
11
else
[]
FORBIDDEN
=
sys
.
argv
[
11
].
split
(
'
,
'
)
if
len
(
sys
.
argv
)
>
11
else
[]
if
DATATYPE
not
in
{
"
tif
"
,
"
tiff
"
,
"
TIF
"
,
"
TIFF
"
}:
if
DATATYPE
not
in
{
"
.
tif
"
,
"
.
tiff
"
,
"
.
TIF
"
,
"
.
TIFF
"
}:
raise
ValueError
(
f
"
Unsupported data type:
{
DATATYPE
}
"
)
raise
ValueError
(
f
"
Unsupported data type:
{
DATATYPE
}
"
)
if
UNIT
not
in
{
"
q_A^-1
"
,
"
q_nm^-1
"
,
"
q_ang^-1
"
}:
if
UNIT
not
in
{
"
q_A^-1
"
,
"
q_nm^-1
"
,
"
q_ang^-1
"
}:
raise
ValueError
(
f
"
Unsupported unit:
{
UNIT
}
"
)
raise
ValueError
(
f
"
Unsupported unit:
{
UNIT
}
"
)
...
...
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