Giter Site home page Giter Site logo

py3gpp's Introduction

CI Pylint PyPI version Downloads

Summary

This python package aims to replace the Matlab 5G Toolbox in Python. The call syntax of functions is the same as in matlab where possible. There are some differences, because matlab allows to continuously index a multidimensional array in one axis. In python this is not possible, therefore the result of functions like nrPBCHIndices() is also multidimensional here to make it compatible with Python.

Installation

'python3 -m pip install py3gpp' or clone this repo and then do 'python3 -m pip install -e .'

Getting started

run 'examples/test_py3gpp.ipynb'

The example data is ideal data generated with Matlab, but the code has been tested with real data that has CFO, SFO and noise.

Documentation

See Matlab documentation of equivalent function

Coding Guideline

Formatting

  • Screen width 120
  • spaces on each side of math operators like +-*/

Testing

  • Each function must have a hard-coded test that can run on CI
  • Each function should have a Matlab test that can run on a machine with Matlab license
  • Hard-coded test cases should cover the most common argument combinations
  • Matlab tests should cover more argument combinations than the hard-coded tests

Function interface

  • Functions should return numpy arrays if the return value is an array
  • Functions should accept numpy arrays and python lists if an input value is an array
  • Config objects should have a getter and setter method and declare the internal variable with underscore at the beginning
  • Input arguments should be checked and a 'ValueError' or 'TypeError' should be raised if an argument is not correct

py3gpp's People

Contributors

catkira avatar vborchsh avatar zulfadlizainal avatar kaposnick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.