sys.version_info.minor) sys.path = [local] + sys.path # %% # %%capture # load all python and interactive tools # %matplotlib widget # %xmode Plain # Plain or Minimal. import spike # %% if os.uname( ).nodename == 'madMacBook': # a switch for the development environment from spike.Interactive import INTER INTER.hidecode(initial='hide', message=False) # %% import EUFT_Spike.Tools.FTICR_INTER as FI from EUFT_Spike.Tools import DocEUFT DocEUFT.Howto_display('1D') # %% # launch #display(Markdown('## ... program is Ready')) #I.hidecode(initial='show', message=False) from importlib import reload reload(FI) w = FI.IFTMS() # %% [markdown]
display(Markdown('## STARTING Environment...')) import matplotlib as mpl # %matplotlib widget import spike from spike.File import BrukerMS from spike.Interactive import INTER as I from spike.Interactive import FTICR_INTER as FI from spike.Interactive import INTER_MS as IMS from spike.Interactive.ipyfilechooser import FileChooser print("\nInteractive module version,", I.__version__) from datetime import datetime print('Run date:', datetime.now().isoformat()) I.initialize() display(Markdown('## ...program is Ready')) from importlib import reload # this line is debugging help # configurable items mpl.rcParams['figure.figsize'] = (8, 4) # (X,Y) default figure size I.Activate_Wheel = True # True/False wheel control in the graphic cells # %% [markdown] # ### Choose the file # Use `FileChooser()` to choose a file on your disk - The optional `base` argument, starts the exploration on a given location. # # Bruker files are named `fid` and are contained in a `*.d` directory. # %% FC = FileChooser(filetype='fid')
# %% [markdown] # ## To use it, # execute each executable cell (marked with the `In[]`) either by cliking on the Run icon on the top of the window, or by hitting *shift-Return* on the keyboard # %% [markdown] # ### Initialization of the environment # the following cell should be run only once, at the beginning of the processing # %% from IPython.display import display, HTML, Markdown, Image display(Markdown('## STARTING Environment...')) # %matplotlib notebook import spike.Interactive.INTER as I from spike.Interactive.FTICR_INTER import MR, MR_interact from spike.Interactive.ipyfilechooser import FileChooser I.hidecode() # %% [markdown] # ### Choose the file # Use `FileChooser()` to choose a file on your disk - The optional `base` argument, starts the exploration on a given location. # # 2D processed files are `*.msh5` files. # %% FC = FileChooser('/DATA',filetype='y*.msh5', mode='r') display(FC) # %% [markdown] # the `MR` tool simply loads and describe the content of the file # %%
# load all python and interactive tools from __future__ import print_function, division from IPython.display import display, HTML, Markdown, Image display(Markdown('## STARTING Environment...')) import matplotlib.pyplot as plt # %matplotlib widget import os.path as op import spike from spike.File.BrukerNMR import Import_2D from spike.Interactive import INTER as I from spike.Interactive import INTER_2D as I2D from spike.Interactive.ipyfilechooser import FileChooser print("\nInteractive module version,", I.__version__) from datetime import datetime print('Run date:', datetime.now().isoformat()) I.initialize() display(Markdown('## ...program is Ready')) from importlib import reload # the two following lines are debugging help # configurable items plt.rcParams['figure.figsize'] = (8, 4) # (X,Y) default figure size I.Activate_Wheel = True # True/False wheel control in the graphic cells # %% [markdown] # --- # # ### Choose the file # The `FileChooser()` tool creates a dialog box which allows to choose a file on your disk # # - use the `Select` button # - modify the ( *optional* ) `path` argument, to start the exploration on a given location
# # ## Initialization # the following cell is to be run once, at the beginning of the processing # %% # load all python and interactive tools - has to be run only once (but it does not hurt to rerun...) from IPython.display import display, HTML, Markdown, Image display(Markdown('## STARTING Environment...')) import matplotlib as mpl # %matplotlib widget import spike from spike.File.BrukerNMR import Import_1D from spike.Interactive import INTER as I from spike.Interactive.ipyfilechooser import FileChooser from datetime import datetime I.initialize() print('Run date:', datetime.now().isoformat()) display(Markdown('## ...program is Ready')) from importlib import reload # this line is debugging help # configurable items - you may change them to fit you preferences verbose = 1 # chose from 0 (terse) to 3 more verbose mpl.rcParams['figure.figsize'] = (8, 4) # (X,Y) default figure size I.Activate_Wheel = True # True/False scale with wheel control in the graphic cells # %% [markdown] # ### Choose the file # The `FileChooser()` tool creates a dialog box which allows to choose a file on your disk # # - use the `Select` button, click on the directory to move around `..` is for going back in the directory tree # - click on the file to select it
# %% # load all python and interactive tools from __future__ import print_function, division from IPython.display import display, HTML, Markdown, Image display(Markdown('## STARTING Environment...')) # %matplotlib widget import os.path as op import spike from spike.File.BrukerNMR import Import_1D from spike.Interactive import INTER as I from spike.Interactive.ipyfilechooser import FileChooser display(Markdown('## ...program is Ready')) from importlib import reload # the two following lines are debugging help reload(I) # and can be removed safely when in production I.hidecode() # %% [markdown] # ### Choose the file # The `FileChooser()` tool creates a dialog box which allows to choose a file on your disk # # - use the `Select` button # - modify the ( *optional* ) `path` argument, to start the exploration on a given location # - After the selection, the selected filename is found in `FC.selected` # %% FC = FileChooser(path='/DATA/', filename='fid') display(FC) # %% [markdown] # ### Import dataset