Commit ee86fcac authored by Yan's avatar Yan
Browse files

Added network storage, added water routine

parent b71be539
# Measuring samples in water with ISQ
Water is a bit problematic solvent for ISQ but measurements in it can be done! It only takes a bit longer and you will need to use different procedure!
### How to measure water samples?
* Do not forget to book some extra time
* Instead of the normal procedure you will use the procedure for water.
**add picture here**
First and last line of the water template flushes the system to the water and then from the water to generally more accepted solvent - methanol.
### Why water is special?
Water mixes exothermically with other solvents like methanol or acetonitrile. To prove my point this is how it looks when you are going from methanol to water and back:
**add picture here**
Flow was set to **0.5 ml/min**, water has started to be pumped at 5th minute. You see that the pressure raises sharply around 6th minute (0.5 ml dead volume) and then it slowly drops in course of approximately 5 minutes (2.5 ml volume before flushing MeOH). The same applies for the change back from water to methanol. The pressures are lower for the normal operating flow of 0.2 ml/min.
#!/usr/bin/env python3
from matplotlib.backends.backend_qt5agg import\
FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from matplotlib.patches import Rectangle as rect
from PyQt5 import QtGui
from PyQt5 import QtWidgets
from PyQt5 import QtCore
import numpy as np
import pandas as pd
import sys
def load_file(fn):
a = np.asarray(pd.read_table(
fn, delim_whitespace=True, skiprows=43, header=None,
names=("Time (min)", "step (ignore)", "Pressure (bar)"))
[['Time (min)','Pressure (bar)']]).T
return a[0], a[1]
def populate(datas, plot, style):
#plot.plot(datas[0], datas[1], color=(0,0.9,0,1))
plot.plot(datas[0], datas[1], linewidth=0.8, **style)
return 0
def main(pathprefix, files, styles, outname, index):
app = QtWidgets.QApplication(sys.argv)
graph = Figure(figsize=(5,2), dpi=100, facecolor="None",
spectra = graph.subplots(1,1, subplot_kw={"facecolor": (1, 1, 1, 0)})
canvas = FigureCanvas(graph)
spectra.set_xlabel("Time (min)", )
spectra.set_ylabel("Pressure (bar)")
spectra.grid(True, 'minor', linewidth='0.2')
main_window = QtWidgets.QMainWindow(windowTitle="VSWR view")
for name, style in zip(files, styles):
datas = load_file(pathprefix+name)
populate(datas, spectra, style)
spectra.axvline(5, color="#FF000088", linestyle=":")
spectra.axvline(10, color="#FF000088", linestyle=":")
spectra.annotate('$100\%\ MeOH$', (0,5), color="#884400FF")
spectra.annotate('$100\%\ H_2O$', (6.25,5), color="#0000AAFF")
spectra.annotate('$100\%\ MeOH$', (11.25,5), color="#884400FF")
graph.savefig(outname+".jpg", dpi=300)
graph.savefig(outname+".png", dpi=300)
label = QtWidgets.QLabel(alignment=QtCore.Qt.AlignCenter)
main_window.resizeEvent = lambda x: label.setPixmap(
pixmap.scaled(x.size(), QtCore.Qt.KeepAspectRatio,
if __name__ == "__main__":
index = "b)"
pathprefix = ''
files = ['watertest.txt']
styles = [{'color': (0.3, 0, 0.5, 1), 'ls': '-', 'label': "mixing pressure"}]
outname = 'mixing_chart'
main(pathprefix, files, styles, outname, index)
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment