Skip to main content

applyaf

CI Status PyPi Version Coverage Status License Badge

applyaf is a Python 3.12+ module that applies frequency dependent antenna factors and cable losses to spectrum analyzer readings in order to calculate the incident field. Any duplicate frequency entries in the antenna factors or cable losses data are removed before interpolating the frequencies to match those of the spectrum analyzer readings.

Inputs

Three csv files containing the following are required inputs:

  1. Spectrum analyzer measurements
  2. Antenna factor data
  3. Cable loss data

Each CSV file should contain data in two columns:

  1. Frequency
  2. Amplitude

The amplitude is expected to be in dB.

Dependencies

See the pyproject.toml and uv.lock files for the dependency requirements.

Future Improvements

Some thoughts for future improvements include:

  1. Allowing CSV data files that contain non-dB amplitudes and then convert as needed. Should this be a per-file setting?
  2. Generalize the code to handle a variable number (>3) of data to be interpolated and applied to the given data set.
  3. If the code is generalized, should this be wrapped into the siganalysis project or left on its own?

Contributing

Contributions are welcome! To contribute please:

  1. Fork the repository
  2. Create a feature branch
  3. Add code and tests
  4. Pass lint and tests
  5. Submit a pull request

Development Setup

Development Setup Using uv

With uv, ruff and Just installed, development has been simplified to simply running Just to see the available commands.

$ just

Deploying with uv

$ just test
$ git tag -a vX.Y.Z -m "vX.Y.Z"
$ just deploy

Development Setup on macOS

$ brew install uv ruff just

License

applyaf is released under the MIT license. Please see the LICENSE.txt file for more information.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

applyaf-3.0.0.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

applyaf-3.0.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file applyaf-3.0.0.tar.gz.

File metadata

  • Download URL: applyaf-3.0.0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for applyaf-3.0.0.tar.gz
Algorithm Hash digest
SHA256 89c00e0b3a4fd2cbf9883651fc464326e46da4983832dde40450345125c6d92d
MD5 1906d8fbad42a13febcf7f6080dc2538
BLAKE2b-256 5ee9a41ef223ec7b2ce364cb0b41bcdfe61511f9801c2387b0989aa28cd97d66

See more details on using hashes here.

File details

Details for the file applyaf-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: applyaf-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for applyaf-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2aed42d78feaf0fd4e921fd223064c04a7e4a41bbc48e4e5768914fd7c438a6
MD5 69406fbff3f5045ac30588e0cac1579a
BLAKE2b-256 31dcd7a3a3cb50e8e914950b7d2808cf37564c67de2aae354ac569e285643602

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.2

2 files

3.0.1

2 files

This release

3.0.0 This release

2 files

2.1.1

2 files

2.1.0

2 files

2.0.1

2 files

1.6.6

2 files

1.6.5

2 files

1.6.3

2 files

1.6.2

1 file

1.6.1

2 files

1.6.0

2 files

1.5.3

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

1 file

1.2.0

1 file

1.1.0

2 files

1.0.1

1 file

1.0.0

1 file

0.4.2

1 file

0.4.0

1 file

0.3.0

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page