Skip to content

Commit dd5ff16

Browse files
committed
2 parents 7830ab9 + 50bb00d commit dd5ff16

7 files changed

Lines changed: 27 additions & 50 deletions

File tree

data_management_learning_path/ods/compare_measurement.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
],
270270
"metadata": {
271271
"kernelspec": {
272-
"display_name": "Python 3",
272+
"display_name": ".venv",
273273
"language": "python",
274274
"name": "python3"
275275
},
@@ -283,7 +283,7 @@
283283
"name": "python",
284284
"nbconvert_exporter": "python",
285285
"pygments_lexer": "ipython3",
286-
"version": "3.13.6"
286+
"version": "3.11.6"
287287
}
288288
},
289289
"nbformat": 4,

data_management_learning_path/ods/crash_analysis.ipynb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
{
3636
"cell_type": "code",
37-
"execution_count": 1,
37+
"execution_count": null,
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -48,8 +48,7 @@
4848
"import scipy.signal as signal\n",
4949
"import matplotlib.pyplot as plt\n",
5050
"\n",
51-
"from odsbox.con_i import ConI\n",
52-
"from odsbox.submatrix_to_pandas import submatrix_to_pandas\n"
51+
"from odsbox.con_i import ConI\n"
5352
]
5453
},
5554
{
@@ -134,7 +133,7 @@
134133
},
135134
{
136135
"cell_type": "code",
137-
"execution_count": 3,
136+
"execution_count": null,
138137
"metadata": {},
139138
"outputs": [],
140139
"source": [
@@ -156,10 +155,7 @@
156155
"submatrix_id = sms[\"SubMatrix.Id\"].iloc[0]\n",
157156
"\n",
158157
"# We need the data as a pandas DataFrame\n",
159-
"df = submatrix_to_pandas(con_i, submatrix_id)\n",
160-
"\n",
161-
"# The time channel is the index of the DataFrame\n",
162-
"df.set_index(\"00TIRS000001TI00\", inplace=True)\n",
158+
"df = con_i.bulk.data_read(submatrix_id)\n",
163159
"\n",
164160
"# Extract the head acceleration channels\n",
165161
"a_x = df[\"24HEADCG0000ACXP\"];\n",

data_management_learning_path/ods/kaggl_electric_motor_temperature_example.ipynb

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
"except:\n",
4545
" !pip install odsbox \n",
4646
" \n",
47-
"from odsbox.con_i import ConI\n",
48-
"from odsbox.submatrix_to_pandas import submatrix_to_pandas"
47+
"from odsbox.con_i import ConI"
4948
]
5049
},
5150
{
@@ -218,7 +217,7 @@
218217
"\n",
219218
"Until now, we haven't loaded any mass data, yet. \n",
220219
"\n",
221-
"In our data model, the individual profiles are not contained in a big single dataset. They are stored profile by profile in so called submatrices (we looked at them before a bit). So we go and fetch the first profile returned as DataFrame by using `submatrix_to_pandas`. "
220+
"In our data model, the individual profiles are not contained in a big single dataset. They are stored profile by profile in so called submatrices (we looked at them before a bit). So we go and fetch the first profile returned as DataFrame by using ` con_i.bulk.data_read(...)`. "
222221
]
223222
},
224223
{
@@ -560,11 +559,8 @@
560559
"\n",
561560
"print(profile_name)\n",
562561
"\n",
563-
"dm_df = submatrix_to_pandas(con_i, dm_id)\n",
564-
"if \"Time\" in dm_df.columns:\n",
565-
" dm_df.set_index(\"Time\", inplace=True)\n",
566-
"elif \"time\" in dm_df.columns:\n",
567-
" dm_df.set_index(\"time\", inplace=True)\n",
562+
"dm_df = con_i.bulk.data_read(dm_id)\n",
563+
"\n",
568564
"dm_df.head()"
569565
]
570566
},
@@ -636,11 +632,7 @@
636632
}
637633
],
638634
"source": [
639-
"dm_df = submatrix_to_pandas(con_i, dm_id)\n",
640-
"if \"Time\" in dm_df.columns:\n",
641-
" dm_df.set_index(\"Time\", inplace=True)\n",
642-
"elif \"time\" in dm_df.columns:\n",
643-
" dm_df.set_index(\"time\", inplace=True)\n",
635+
"dm_df = con_i.bulk.data_read(dm_id)\n",
644636
"\n",
645637
"coi = target_features\n",
646638
"fig, ax = plt.subplots()\n",
@@ -797,7 +789,7 @@
797789
"\n",
798790
"\n",
799791
"# normalize\n",
800-
"dm_df = submatrix_to_pandas(con_i, dm_id)\n",
792+
"dm_df = con_i.bulk.data_read(dm_id, set_independent_as_index=False)\n",
801793
"\n",
802794
"dm_df = dm_df / dm_df.abs().max(axis=0)\n",
803795
"transformed = PCA().fit_transform(dm_df.drop(target_features, axis=1))\n",
@@ -861,7 +853,7 @@
861853
],
862854
"metadata": {
863855
"kernelspec": {
864-
"display_name": "Python 3",
856+
"display_name": ".venv",
865857
"language": "python",
866858
"name": "python3"
867859
},
@@ -875,7 +867,7 @@
875867
"name": "python",
876868
"nbconvert_exporter": "python",
877869
"pygments_lexer": "ipython3",
878-
"version": "3.13.6"
870+
"version": "3.11.6"
879871
}
880872
},
881873
"nbformat": 4,

data_management_learning_path/ods/load_measurement.ipynb

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"cell_type": "code",
36-
"execution_count": 1,
36+
"execution_count": null,
3737
"metadata": {},
3838
"outputs": [],
3939
"source": [
@@ -42,8 +42,7 @@
4242
"except:\n",
4343
" !pip install odsbox \n",
4444
"\n",
45-
"from odsbox.con_i import ConI\n",
46-
"from odsbox.submatrix_to_pandas import submatrix_to_pandas"
45+
"from odsbox.con_i import ConI"
4746
]
4847
},
4948
{
@@ -142,7 +141,7 @@
142141
},
143142
{
144143
"cell_type": "code",
145-
"execution_count": 4,
144+
"execution_count": null,
146145
"metadata": {},
147146
"outputs": [
148147
{
@@ -307,12 +306,7 @@
307306
}
308307
],
309308
"source": [
310-
"df = submatrix_to_pandas(con_i, submatrix_id)\n",
311-
"\n",
312-
"if \"Time\" in df.columns:\n",
313-
" df.set_index(\"Time\", inplace=True)\n",
314-
"elif \"time\" in df.columns:\n",
315-
" df.set_index(\"time\", inplace=True)\n",
309+
"df = con_i.bulk.data_read(submatrix_id)\n",
316310
"\n",
317311
"df.head()"
318312
]

data_management_learning_path/ods/playground.ipynb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"cell_type": "code",
36-
"execution_count": 6,
36+
"execution_count": null,
3737
"metadata": {},
3838
"outputs": [
3939
{
@@ -62,7 +62,6 @@
6262
" !pip install -U odsbox\n",
6363
"\n",
6464
"from odsbox.con_i import ConI\n",
65-
"from odsbox.submatrix_to_pandas import submatrix_to_pandas\n",
6665
"\n",
6766
"con_i = ConI(url='https://docker.peak-solution.de:10032/api', auth=('Demo','mdm'))"
6867
]
@@ -81,7 +80,7 @@
8180
},
8281
{
8382
"cell_type": "code",
84-
"execution_count": 7,
83+
"execution_count": null,
8584
"metadata": {},
8685
"outputs": [
8786
{
@@ -256,12 +255,7 @@
256255
")\n",
257256
"\n",
258257
"# get the bulk data of first submatrix\n",
259-
"df = submatrix_to_pandas(con_i, submatrices.iloc[0,1])\n",
260-
"\n",
261-
"if \"Time\" in df.columns:\n",
262-
" df.set_index(\"Time\", inplace=True)\n",
263-
"elif \"time\" in df.columns:\n",
264-
" df.set_index(\"time\", inplace=True)\n",
258+
"df = con_i.bulk.data_read(submatrices.iloc[0,1])\n",
265259
"\n",
266260
"df.head()"
267261
]

data_management_learning_path/ods/powerbi.ipynb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@
4747
},
4848
{
4949
"cell_type": "code",
50-
"execution_count": 6,
50+
"execution_count": null,
5151
"metadata": {},
5252
"outputs": [],
5353
"source": [
5454
"\n",
5555
"from odsbox.con_i import ConI\n",
56-
"from odsbox.submatrix_to_pandas import submatrix_to_pandas\n",
5756
"\n",
5857
"with ConI(url='https://docker.peak-solution.de:10032/api', auth=('Demo','mdm'), verify_certificate=True) as con_i:\n",
5958
" # find submatrix (bulk root) of a certain measurement\n",
@@ -66,7 +65,7 @@
6665
" )\n",
6766
"\n",
6867
" # get the bulk data of first submatrix\n",
69-
" df = submatrix_to_pandas(con_i, submatrices.iloc[0,1])\n"
68+
" df = con_i.bulk.data_read(submatrices.iloc[0,1])\n"
7069
]
7170
},
7271
{
@@ -406,12 +405,11 @@
406405
},
407406
{
408407
"cell_type": "code",
409-
"execution_count": 8,
408+
"execution_count": null,
410409
"metadata": {},
411410
"outputs": [],
412411
"source": [
413412
"from odsbox.con_i import ConI\n",
414-
"from odsbox.submatrix_to_pandas import submatrix_to_pandas\n",
415413
"\n",
416414
"with ConI(url='https://docker.peak-solution.de:10032/api', auth=('Demo','mdm'), verify_certificate=True) as con_i:\n",
417415
"\n",

data_management_learning_path/overview.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"* [📓 Using Notebooks](/notebooking/overview.md)\n",
4343
"<br>*Data Management Learning Path* is based on [Jupyter Notebooks](https://jupyter.org/) such that you can interact and explore the content \"live\". You can find some hints and ideas how you can use **Notebooks** in this chapter.\n",
4444
"\n",
45+
"* [🔎 PeakTDM FileFocus](https://github.com/peak-solution/filefocus?tab=readme-ov-file#readme)\n",
46+
"<br>*PeakTDM FileFocus* is an out‑of‑the‑box product experience for ASAM ODS and EXD‑API ecosystem, featuring integrated file indexing and AI‑ready data transformation — ideal for ODSBox, EXD‑API plugins, and the Data Management Learning Path\n",
47+
"\n",
4548
"### Big Data Connectors ###\n",
4649
"\n",
4750
"* [📓 Apache Spark](/spark/overview.ipynb)\n",

0 commit comments

Comments
 (0)