Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
JupyLabBook
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
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIRIUS Beamline
Notebooks
JupyLabBook
Commits
879cb068
Commit
879cb068
authored
Jun 21, 2021
by
Arnaud HEMMERLE
Browse files
Options
Downloads
Patches
Plain Diff
Fixed typo
parent
c91c1cac
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
JupyLabBook.ipynb
+1
-1
1 addition, 1 deletion
JupyLabBook.ipynb
with
1 addition
and
1 deletion
JupyLabBook.ipynb
+
1
−
1
View file @
879cb068
...
...
@@ -49,7 +49,7 @@
},
"outputs": [],
"source": [
"__version__ = '2.
5
'\n",
"__version__ = '2.
6
'\n",
"print(\"JupyLabBook version: %s\"%__version__)\n",
"print(\"More info on: %s\"%\"https://gitlab.com/soleil-data-treatment/soleil-beamlines/soleil-beamline-sirius/JupyLabBook\")\n",
"\n",
...
...
%% Cell type:markdown id: tags:notPrint
# JupyLabBook @ SIRIUS
%% Cell type:code id: tags:
```
python
%%
latex
\
tableofcontents
\
newpage
```
%% Output
\tableofcontents
\newpage
%% Cell type:code id: tags:notPrint
```
python
__version__
=
'
2.
5
'
__version__
=
'
2.
6
'
print
(
"
JupyLabBook version: %s
"
%
__version__
)
print
(
"
More info on: %s
"
%
"
https://gitlab.com/soleil-data-treatment/soleil-beamlines/soleil-beamline-sirius/JupyLabBook
"
)
# import custom libraries
import
lib.frontend
as
FE
from
lib.extraction.common
import
PyNexus
as
PN
from
lib.extraction
import
GIXD
as
GIXD
from
lib.extraction
import
GIXS
as
GIXS
from
lib.extraction
import
PilatusSum
as
PilatusSum
from
lib.extraction
import
Isotherm
as
Isotherm
from
lib.extraction
import
Sensors1D
as
Sensors1D
from
lib.extraction
import
XRF
as
XRF
from
lib.extraction
import
XRR
as
XRR
#import useful libraries
import
numpy
as
np
import
matplotlib.pyplot
as
plt
from
IPython.display
import
set_matplotlib_formats
,
Javascript
,
display
# necessary for plotting in the notebook
%
matplotlib
inline
# to avoid having a large notebook
set_matplotlib_formats
(
'
png
'
,
'
pdf
'
)
# to have all the cells expanded (not collapsed)
display
(
Javascript
(
'
IPython.OutputArea.prototype._should_scroll = function(lines) {return false;}
'
))
# define the class experiment
class
Experiment
:
"""
Class Experiment is used to pass arguments concerning the current experiment only.
"""
def
__init__
(
self
):
pass
# test if the expt already exists (avoid loosing info when reloading this cell)
try
:
expt
.
notebook_name
except
:
expt
=
Experiment
()
# necessary for saving in pdf
expt
.
notebook_name
=
'
JupyLabBook.ipynb
'
# directory where the data will be saved
expt
.
working_dir
=
"
working/
"
# directory where the nexus files are
#expt.recording_dir = "Z:\\com-sirius\\users\\2021\\week15\\"
expt
.
recording_dir
=
"
recording/
"
# directory where the logs are
#expt.logs_dir = "Z:\\com-sirius\\commissionning\\2021\\week15\\logs\\"
expt
.
logs_dir
=
"
logs/
"
FE
.
Action
.
Check_and_init
(
expt
)
```
...
...
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