Skip to content
Snippets Groups Projects
Commit 879cb068 authored by Arnaud HEMMERLE's avatar Arnaud HEMMERLE
Browse files

Fixed typo

parent c91c1cac
Branches
Tags
No related merge requests found
%% 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)
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment