Skip to content

Commit

Permalink
fix: addressing some minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanto268 committed Sep 20, 2024
1 parent 5c43bcb commit db45a43
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 13 deletions.
File renamed without changes
Binary file added docs/_static/images/NCap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
project = 'SQuADDS'
copyright = '2023, Sadman Ahmed Shanto & Eli Levenson-Falk'
author = 'Sadman Ahmed Shanto'
release = "0.3.2"
release = "0.3.3"

# General configuration
exclude_patterns = [
Expand Down
11 changes: 11 additions & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Release Notes
=============

Version 0.3.3 (2024-09-20)
--------------------------

* **Alpha Version 0.3.3**

**New Features**

- Patched some bugs in simulation and contribution info query

---

Version 0.3.2 (2024-08-30)
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='SQuADDS',
version='0.3.2',
version='0.3.3',
packages=find_packages(),
description='Our project introduces an open-source database of programmatically generated and experimentally validated superconducting quantum device designs, accessible through a user-friendly interface, significantly lowering the entry barrier for research in this field.',
long_description=open('README.md').read(),
Expand Down
2 changes: 1 addition & 1 deletion squadds/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

__version__ = '0.3.2'
__version__ = '0.3.3'
__license__ = "MIT License"
__copyright__ = 'Sadman Ahmed Shanto, Eli Levenson-Falk 2023'
__author__ = 'Sadman Ahmed Shanto, Eli Levenson-Falk'
Expand Down
7 changes: 1 addition & 6 deletions squadds/components/coupled_systems.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import warnings
from collections import OrderedDict

import numpy as np
Expand Down Expand Up @@ -64,11 +63,7 @@ def make(self):
self.make_qubit()
self.make_cavity()
self.make_pins()
warnings.warn(
"There may be \"kinks\" in the CPW. This is due to the ``asymmetry`` parameter in the CPW options. To remove the kinks, change the ``asymmetry`` parameter until the CPW is smooth.\nAlternatively, you may consider playing with the ``start_jogged_extension`` options",
ResourceWarning
)
# print("There may be \"kinks\" in the CPW. This is due to the ``asymmetry`` parameter in the CPW options. To remove the kinks, change the ``asymmetry`` parameter until the CPW is smooth.\nAlternatively, you may consider playing with the ``start_jogged_extension`` options")
print("There may be \"kinks\" in the CPW. This is due to the ``asymmetry`` parameter in the CPW options. To remove the kinks, change the ``asymmetry`` parameter until the CPW is smooth.\nAlternatively, you may consider playing with the ``start_jogged_extension`` options")

def make_qubit(self):
"""
Expand Down
8 changes: 5 additions & 3 deletions squadds/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
import requests
from datasets import get_dataset_config_names, load_dataset
from huggingface_hub import login
from tabulate import tabulate
from tqdm import tqdm

from squadds.core.design_patterns import SingletonMeta
from squadds.core.processing import *
from squadds.core.utils import *
from tabulate import tabulate
from tqdm import tqdm

#* HANDLE WARNING MESSAGES
if sys.platform == "darwin": # Checks if the operating system is macOS
Expand Down Expand Up @@ -299,6 +298,9 @@ def view_datasets(self):
# Transpose the table (convert columns to rows)
table = list(map(list, zip(*table)))

# Remove duplicate entries in table
table = [list(x) for x in set(tuple(x) for x in table)]

# Print the table with headers
print(tabulate(table, headers=["Component", "Component Name", "Data Available", "Component Image"],tablefmt="grid"))

Expand Down
2 changes: 1 addition & 1 deletion squadds/simulations/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def run_eigenmode(design, geometry_dict, sim_options):
mesh_lengths = {}
coupler_type = "CLT"
# "finger_count" in geometry_dict["cplr_opts"]
if geometry_dict['cprl_opts'].get('finger_count') is not None :
if geometry_dict['cplr_opts'].get('finger_count') is not None :
coupler_type = "NCap"
render_simulation_no_ports(epra, [cpw,claw], [(cpw.name, "start")], config.design_name, setup.vars)
mesh_lengths = {'mesh1': {"objects": [f"trace_{cpw.name}", f"readout_connector_arm_{claw.name}"], "MaxLength": '4um'}}
Expand Down
3 changes: 3 additions & 0 deletions wish_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ Refer to [contribution guidelines](CONTRIBUTING.md) for more information on how

## Boring but Necessary:

- fix interpolated designs sim run
- add meander smoothing support
- checking for claw dims on H space plot
- **Check for breaking changes in the latest version of dependencies and update the package accordingly**
- create unit tests for each feature/file
- create proper train/test/splits and changing `SQuADDS_DB()` to always return all data
Expand Down

0 comments on commit db45a43

Please sign in to comment.