Skip to content
Discussion options

You must be logged in to vote

Hi,

so i am assuming your current code looks something like this:

calib = cuvis.Calibration("The/path/to/your/file.cu3c")

Currently cuvis.Calibration when initialized with a path expects the path to be pointing to factory directory and it will try to only load init.daq files.
For loading a .cu3c file the way to go is to first load this file via the session file class.

 calibFile = cuvis.SessionFile("The/path/to/your/file.cu3c")
 calib = cuvis.Calibration(calibFile)

So overall the logic is:

if (factoryDir.is_dir()):
    calibration = cuvis.Calibration(factoryDir)
elif (factoryDir.suffix == '.cu3c'):
    print("using .cu3c file as calibration instead of factory dir...")
    calibFile = cuvis.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@irvinesb
Comment options

Answer selected by irvinesb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants