Mass Hunter SDK

Try to run the quant debug tools using following code, but keep having the error. I am using VS studio 2019 and ironPython 2.7, installed the SDK from Quant B09.00

 

import clr
import sys

import System

# append quant path
# modify path if necessary
sys.path.append(
"C:\\Program Files\\Agilent\\MassHunter\\Workstation\\Quant\\bin")

# add debug dll path
sys.path.append(System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(__file__)))

# load debug tool
clr.AddReference("QuantDebugTools")

import Agilent

# run
Agilent.MassSpectrometry.DataAnalysis.Quantitative.DebugTools.RunPython.RunQuant('QuantDebugTools')

 

 

ERROR: TypeError: RunQuant() takes exactly 2 arguments (1 given)

 

Was this helpful?