%global _empty_manifest_terminate_build 0 Name: python-waveforms Version: 1.5.96 Release: 1 Summary: Edit waveforms used in experiment License: MIT License URL: https://github.com/feihoo87/waveforms Source0: https://mirrors.nju.edu.cn/pypi/web/packages/51/d4/89232fcd20aff640d2fa3c1516ee881c112bfa797a6ac3e9828e99917450/waveforms-1.5.96.tar.gz Requires: python3-antlr4-python3-runtime Requires: python3-click Requires: python3-cryptography Requires: python3-dill Requires: python3-GitPython Requires: python3-numpy Requires: python3-ply Requires: python3-scipy Requires: python3-Sphinx Requires: python3-sphinxcontrib-napoleon Requires: python3-sphinxcontrib-zopeext Requires: python3-blinker Requires: python3-matplotlib Requires: python3-openai Requires: python3-portalocker Requires: python3-SQLAlchemy Requires: python3-scikit-learn Requires: python3-scikit-optimize Requires: python3-tenacity Requires: python3-tiktoken Requires: python3-pytest %description # waveforms [![View build status](https://github.com/feihoo87/waveforms/actions/workflows/workflow.yml/badge.svg)](https://github.com/feihoo87/waveforms/) [![Coverage Status](https://coveralls.io/repos/github/feihoo87/waveforms/badge.svg?branch=master)](https://coveralls.io/github/feihoo87/waveforms?branch=master) [![PyPI version](https://badge.fury.io/py/waveforms.svg)](https://pypi.org/project/waveforms/) Form waveforms used in experiment. ## Installation We encourage installing waveforms via the pip tool (a python package manager): ```bash python -m pip install waveforms ``` To install from the latest source, you need to clone the GitHub repository on your machine. ```bash git clone https://github.com/feihoo87/waveforms.git ``` Then dependencies and `waveforms` can be installed in this way: ```bash cd waveforms python -m pip install numpy python -m pip install -e . ``` ## Usage ```python import numpy as np import matplotlib.pyplot as plt from waveforms import * pulse = cosPulse(20e-9) x_wav = zero() y_wav = zero() I, Q = mixing(0.5*pulse, freq=-20e6, DRAGScaling=0.2) x_wav += I y_wav += Q I, Q = mixing(pulse >> 1e-6, freq=-20e6, phase=np.pi/2, DRAGScaling=0.2) x_wav += I y_wav += Q I, Q = mixing((0.5 * pulse) >> 2e-6, freq=-20e6, DRAGScaling=0.2) x_wav += I y_wav += Q t = np.linspace(-1e-6, 9e-6, 10001) plt.plot(t, x_wav(t)) plt.plot(t, y_wav(t)) plt.show() ``` ## Reporting Issues Please report all issues [on github](https://github.com/feihoo87/waveforms/issues). ## License [MIT](https://opensource.org/licenses/MIT) %package -n python3-waveforms Summary: Edit waveforms used in experiment Provides: python-waveforms BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-cffi BuildRequires: gcc BuildRequires: gdb %description -n python3-waveforms # waveforms [![View build status](https://github.com/feihoo87/waveforms/actions/workflows/workflow.yml/badge.svg)](https://github.com/feihoo87/waveforms/) [![Coverage Status](https://coveralls.io/repos/github/feihoo87/waveforms/badge.svg?branch=master)](https://coveralls.io/github/feihoo87/waveforms?branch=master) [![PyPI version](https://badge.fury.io/py/waveforms.svg)](https://pypi.org/project/waveforms/) Form waveforms used in experiment. ## Installation We encourage installing waveforms via the pip tool (a python package manager): ```bash python -m pip install waveforms ``` To install from the latest source, you need to clone the GitHub repository on your machine. ```bash git clone https://github.com/feihoo87/waveforms.git ``` Then dependencies and `waveforms` can be installed in this way: ```bash cd waveforms python -m pip install numpy python -m pip install -e . ``` ## Usage ```python import numpy as np import matplotlib.pyplot as plt from waveforms import * pulse = cosPulse(20e-9) x_wav = zero() y_wav = zero() I, Q = mixing(0.5*pulse, freq=-20e6, DRAGScaling=0.2) x_wav += I y_wav += Q I, Q = mixing(pulse >> 1e-6, freq=-20e6, phase=np.pi/2, DRAGScaling=0.2) x_wav += I y_wav += Q I, Q = mixing((0.5 * pulse) >> 2e-6, freq=-20e6, DRAGScaling=0.2) x_wav += I y_wav += Q t = np.linspace(-1e-6, 9e-6, 10001) plt.plot(t, x_wav(t)) plt.plot(t, y_wav(t)) plt.show() ``` ## Reporting Issues Please report all issues [on github](https://github.com/feihoo87/waveforms/issues). ## License [MIT](https://opensource.org/licenses/MIT) %package help Summary: Development documents and examples for waveforms Provides: python3-waveforms-doc %description help # waveforms [![View build status](https://github.com/feihoo87/waveforms/actions/workflows/workflow.yml/badge.svg)](https://github.com/feihoo87/waveforms/) [![Coverage Status](https://coveralls.io/repos/github/feihoo87/waveforms/badge.svg?branch=master)](https://coveralls.io/github/feihoo87/waveforms?branch=master) [![PyPI version](https://badge.fury.io/py/waveforms.svg)](https://pypi.org/project/waveforms/) Form waveforms used in experiment. ## Installation We encourage installing waveforms via the pip tool (a python package manager): ```bash python -m pip install waveforms ``` To install from the latest source, you need to clone the GitHub repository on your machine. ```bash git clone https://github.com/feihoo87/waveforms.git ``` Then dependencies and `waveforms` can be installed in this way: ```bash cd waveforms python -m pip install numpy python -m pip install -e . ``` ## Usage ```python import numpy as np import matplotlib.pyplot as plt from waveforms import * pulse = cosPulse(20e-9) x_wav = zero() y_wav = zero() I, Q = mixing(0.5*pulse, freq=-20e6, DRAGScaling=0.2) x_wav += I y_wav += Q I, Q = mixing(pulse >> 1e-6, freq=-20e6, phase=np.pi/2, DRAGScaling=0.2) x_wav += I y_wav += Q I, Q = mixing((0.5 * pulse) >> 2e-6, freq=-20e6, DRAGScaling=0.2) x_wav += I y_wav += Q t = np.linspace(-1e-6, 9e-6, 10001) plt.plot(t, x_wav(t)) plt.plot(t, y_wav(t)) plt.show() ``` ## Reporting Issues Please report all issues [on github](https://github.com/feihoo87/waveforms/issues). ## License [MIT](https://opensource.org/licenses/MIT) %prep %autosetup -n waveforms-1.5.96 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-waveforms -f filelist.lst %dir %{python3_sitearch}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 1.5.96-1 - Package Spec generated