aklab.qulee module#
“Qulee” (pronounced as “KLEE”), is ULVAC’s latest model for residual gas analysis.
Tools to work with Qulee mass spectrometer outputs (CSV) and maybe later with Qulee software? Created 2021/06/11 by queezz
- class aklab.qulee.QMS(datapath)[source]#
Bases:
object
Read Qulee QMS CSV file, generate pandas.DataFrame, plot data.
- Parameters
datapath (string) – path to converted to csv format Qulee QMS data.
- plot(**kws)[source]#
Plot time traces
- Parameters
masslist (list) – Specify list of masses to plot. Plots all by default.
delta (list) – delta = [self.start, self.end] by default, datetime.datetime “window”
ylim (list or tuple) – axis ylims
gridalpha (float) – transparancy of the grid lines
figsize (tuple) – figure size, (8,6) by default
rasterized (bool) – rasterized option for matplotlib
colors (list) – list of colors for color cycle
bbox_to_anchor (list or tuple) – bbox_to_anchor argument for matplotlib legend
- aklab.qulee.generate_colors(masslist, **kws)[source]#
Generate colors based on masslist
- Parameters
masslist (list) – list of masses to be plotted
cmap (matplotlib colormap for color cycle) –
- Returns
clr – list of colors
- Return type
list
- aklab.qulee.plot_qms_dir(dir='', ls=[], out='batch_qms_plot.pdf', **kws)[source]#
Plot QMS files in a directory or from a list.
- Parameters
ls (list) – list of absolute paths to files to plot
dir (string) – directory to scan and plot
out (string) – output pdf file name or absolute path
ext (string) – files extention, CSV by default
figsize (float) – figure width, 500 by default
anchor (list) – Matplotlib bbox_to_inches [1,1]
rasterized (bool) – Matplotlib s rasterized option, when there are too many lines for a PDF
ylim (list or tuple) – by default [1e-14,1e-5]
- aklab.qulee.t2s(t)[source]#
Convert a time string of the Qulee format, ‘000:00:00.625’ -> ‘hhh:mm:ss.ms’ to time in seconds. E.g ‘000:00:00.625’ to 0.625 (s)
- Parameters
t (string) – Qulee time stamp string
- Returns
t – datetime timedelta in seconds
- Return type
datetime.timedelta
- aklab.qulee.t2sa(ta)[source]#
Convert an array of Qulee time stamp strings to array of datetime.timedelta in seconds. Just calls
t2s()
in a loop.- Parameters
ta (array-like) – array of time-strings from Qulee QMS
- Returns
timearray – numpy array with datetime.timedelta in seconds
- Return type
numpy.array