This repository contains the analysis code and experimental phase data used for the manuscript:
Order Finding from Phase Dynamics in Topological Acoustics
main.py— main analysis script.phases_1.mat— experimental phase data used by the script.results/— generated figures and calibration parameters.requirements.txt— Python dependencies.
The code requires Python 3.10 or newer.
Create a local virtual environment:
python -m venv .venvActivate the environment.
On Linux/macOS with bash or zsh:
source .venv/bin/activateOn Linux/macOS with fish:
source .venv/bin/activate.fishThen install the required Python packages:
python -m pip install --upgrade pip
python -m pip install -r requirements.txtTo confirm that the virtual environment is being used, run:
python -c "import sys; print(sys.executable)"The printed path should point to .venv/bin/python inside this repository.
From the repository root, with the virtual environment activated, run:
python main.pyAlternatively, run the script explicitly with the virtual-environment Python:
.venv/bin/python main.pyThe script reads phases_1.mat and writes the output files to the results/ directory. The expected outputs include:
results/N55_a4_W8_Delta7.pdfresults/N135_a4_W8_Delta10.pdfresults/calibration_params_phi_12.txt
If you use this code or data, please cite the associated manuscript and the archived Zenodo release of this repository.
This repository is released under the MIT License.