-
Notifications
You must be signed in to change notification settings - Fork 0
/
utilities.py
34 lines (28 loc) · 847 Bytes
/
utilities.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
"""
===================================================
Program : Quantum_Device_Profiler/utilities.py
===================================================
To Do:
- implement `get_labber_settings` method
"""
__author__ = "Sadman Ahmed Shanto"
__date__ = "02/13/2023"
__email__ = "shanto@usc.edu"
#libraries used
import numpy as np
import os, sys
import json
def parse_json(json_file):
with open(json_file) as json_file_obj:
data = json.load(json_file_obj)
return data
def get_labber_settings(instr):
"""
TO DO:
- have conditionals based on the type of instrument to generate the correct dict object for Labber
returns instr_name <string>, instr_config<dict>
"""
raise NotImplementedError
def create_header(hstring):
return "\n\n"+"="*15+f"\t{hstring}\t"+"="*15+"\n\n"