Python and phyphox: Difference between revisions

From wikiluntti
Line 7: Line 7:
Activate the matchit.vim macro <code>:runtime macros/matchit.vim</code> and set the filetype <code>:set filetype=html</code> (or xml), and now % swaps between the tags.
Activate the matchit.vim macro <code>:runtime macros/matchit.vim</code> and set the filetype <code>:set filetype=html</code> (or xml), and now % swaps between the tags.


The data is located in <code><data-containers></code> blocks and <code><container></code> tag contains the data of each measurements.
The data is located in <code><data-containers></code> blocks and <code><container></code> tag contains the data of each measurements, but is in <code>init</code> tag, as shown below: <code><container size="0" init="1.009771156E1,1.012672424E1,1.004746246E1,1.009292603E1,1.024636555E1,1.024875832E1,1.015065289E1,1.007617569E1,1.012193871E1,1.011954594E1,9.999606133E0,9.978070259E0,1.0059426</code>. Thus, we need to read the init part only.


=== Load the data ===
=== Load the data ===

Revision as of 19:31, 9 June 2025

Introduction

Phyphox XML and VIM

Activate the matchit.vim macro :runtime macros/matchit.vim and set the filetype :set filetype=html (or xml), and now % swaps between the tags.

The data is located in <data-containers> blocks and <container> tag contains the data of each measurements, but is in init tag, as shown below: <container size="0" init="1.009771156E1,1.012672424E1,1.004746246E1,1.009292603E1,1.024636555E1,1.024875832E1,1.015065289E1,1.007617569E1,1.012193871E1,1.011954594E1,9.999606133E0,9.978070259E0,1.0059426. Thus, we need to read the init part only.

Load the data

The simplest

import pandas as pd
df = pd.read_xml( filename )

does not work if the XML file is too large.

Flights

1. Departure WAW-TLL

1. Departure WAW-TLL

References

Other