⚙️
QubiC Data Storage & Visualization
  • Intro to QubiCSV: Overview & Features
  • Managing Calibration Data: Step-by-Step Guide
  • Long-Term Monitor Data Management: A User Manual
  • Visualizing Calibration Data: Techniques and Tools
  • Exploring Long-Term Monitor Data Visualization
  • Advanced Features: Branch Management, Merging, and Historical Data
  • Accessing QubiCSV: Your Guide to Getting Started
  • New Hosting Script
    • Docker Command
    • Hosting Manual: Setting UP QubiC Platform
Powered by GitBook
On this page
  • Create Branch
  • Add Chip
  • Web Platform: Commit Calibration Data
  • Jupyter NoteBook: Commit Calibration Data

Managing Calibration Data: Step-by-Step Guide

Last updated 1 year ago

Create Branch

Let's start with creating the Branch.

Create Branch
from qubicstorage import calibration
import json
commit_data = {
    'author_name': 'John Doe',
    'author_email': 'john@example.com',
    'author_message': 'Initial commit'
}
branch_name = 'test_branch'
response = calibration.createbranch(commit_data, branch_name)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)

Add Chip

Add a chip to the selected Branch.

Add Chip to Branch
from qubicstorage import calibration
import json
chip_data = {
    'name': 'X4Y2',
}
branch_name = 'test'
response = calibration.insertchip(chip_data, branch_name)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
```

Web Platform: Commit Calibration Data

Steps:

  1. Select the Chip for which you are uploading the calibration data from the drop-down

  2. Upload the JSON file only after selecting the Chip from the drop-down. (Only for Web Platform)

  3. Write a Commit Details.

  4. View the Committed Data

Jupyter NoteBook: Commit Calibration Data

Steps:

  1. Get all the Branch Details.

  2. For the selected Branch Get all the Chip Details

  3. Specify Branch, Chip_ID, and Commit Data to upload Calibration File or Object.

  4. View Committed Data

    1. Get the Branch Details and select a specific commit hash

    2. Specified commit hash and view the data

List of Branch available
from qubicstorage import calibration
import json

response = calibration.getbranches()
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
List of all Chips
# Get chip Id 
from qubicstorage import calibration
import json
branch_name = 'test_de'
response = calibration.getchips(branch_name)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
Commit Calibration File
from qubicstorage import calibration
file_path = 'qubitcfg.json'
commit_data = {
    'author_name': 'John Doe',
    'author_email': 'john@example.com',
    'message': 'Initial commit'
}
branch_name = 'test_de'
chip_id ='4' // Get Chip_id from previous step
        
response = calibration.insertbyfile(file_path, commit_data, branch_name,chip_id)
print(response)
Commit as JSON
from qubicstorage import calibration
json_data = {....}
commit_data = {
    'author_name': 'Dev Doe',
    'author_email': 'john@example.com',
    'message': 'Initial commit'
}
branch_name = 'main'
chip_id ='1'
response = calibration.insertbyobject(json_data, commit_data, branch_name,chip_id)
Details to select Hash
# Get Branch Details
from qubicstorage import calibration
import json
branch_name = 'main'

response = calibration.getbranchdetails(branch_name)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
Committed Data
# Get Specific Commit Details
from qubicstorage import calibration
import json
hash = 'g4690gfr130m6rqbgl0927s07gfkntg6'
response = calibration.getcommitdetails(hash)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
Create New Branch
Add New chip
Select Chip from options
Upload Calibration File
Add Commit Details
View Latest Committed Data