Skip to content

Commit 1fafb27

Browse files
committed
implement dqt reader
1 parent 76520f6 commit 1fafb27

2 files changed

Lines changed: 32 additions & 23 deletions

File tree

circStudio/io/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
from .atr import read_atr
33
from .awd import read_awd
44
from .agd import read_agd
5+
from .dqt import read_dqt
56

6-
__all__ = ["Raw", "read_atr", "read_awd", "read_agd"]
7+
__all__ = ["Raw", "read_atr", "read_awd", "read_agd", "read_dqt"]

docs/source/opening_files.ipynb

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"cell_type": "code",
39-
"execution_count": 23,
39+
"execution_count": 4,
4040
"metadata": {
4141
"ExecuteTime": {
4242
"end_time": "2025-07-18T15:06:26.427192Z",
@@ -57,7 +57,7 @@
5757
},
5858
{
5959
"cell_type": "code",
60-
"execution_count": 8,
60+
"execution_count": 5,
6161
"metadata": {
6262
"ExecuteTime": {
6363
"end_time": "2025-05-26T13:07:57.871453Z",
@@ -113,7 +113,7 @@
113113
},
114114
{
115115
"cell_type": "code",
116-
"execution_count": 2,
116+
"execution_count": 6,
117117
"metadata": {
118118
"ExecuteTime": {
119119
"end_time": "2025-07-18T15:20:18.980865Z",
@@ -126,25 +126,6 @@
126126
"fpath = os.path.join(os.path.dirname(circStudio.__file__))"
127127
]
128128
},
129-
{
130-
"cell_type": "code",
131-
"execution_count": 3,
132-
"metadata": {},
133-
"outputs": [
134-
{
135-
"name": "stdout",
136-
"output_type": "stream",
137-
"text": [
138-
"C:\\Users\\Lenovo\\PycharmProjects\\circStudio\\circStudio\n",
139-
"this\n"
140-
]
141-
}
142-
],
143-
"source": [
144-
"print(fpath)\n",
145-
"print('this')"
146-
]
147-
},
148129
{
149130
"cell_type": "code",
150131
"execution_count": 12,
@@ -175,6 +156,33 @@
175156
"raw = circStudio.io.read_agd(os.path.join(fpath, 'data', 'test_sample.agd'))"
176157
]
177158
},
159+
{
160+
"cell_type": "code",
161+
"execution_count": 8,
162+
"metadata": {
163+
"ExecuteTime": {
164+
"end_time": "2025-05-26T13:08:02.161380Z",
165+
"start_time": "2025-05-26T13:08:02.132148Z"
166+
},
167+
"scrolled": true
168+
},
169+
"outputs": [
170+
{
171+
"ename": "AttributeError",
172+
"evalue": "module 'circStudio.io' has no attribute 'read_dqt'",
173+
"output_type": "error",
174+
"traceback": [
175+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
176+
"\u001b[1;31mAttributeError\u001b[0m Traceback (most recent call last)",
177+
"Cell \u001b[1;32mIn[8], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m raw \u001b[38;5;241m=\u001b[39m \u001b[43mcircStudio\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mio\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mread_dqt\u001b[49m(os\u001b[38;5;241m.\u001b[39mpath\u001b[38;5;241m.\u001b[39mjoin(fpath, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mdata\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mtest_sample_dqt.csv\u001b[39m\u001b[38;5;124m'\u001b[39m))\n",
178+
"\u001b[1;31mAttributeError\u001b[0m: module 'circStudio.io' has no attribute 'read_dqt'"
179+
]
180+
}
181+
],
182+
"source": [
183+
"raw = circStudio.io.read_dqt(os.path.join(fpath, 'data', 'test_sample_dqt.csv'))"
184+
]
185+
},
178186
{
179187
"cell_type": "markdown",
180188
"metadata": {},

0 commit comments

Comments
 (0)