From 710efdc53371204b91df86fb8755972a98a9ff46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Wed, 19 Jul 2017 16:59:33 +0300 Subject: [PATCH] Define python enums for normalization and Bessel function types. Former-commit-id: 2dccf7654eec98ce598f82d2d31479dbab459f28 --- qpms/types.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/qpms/types.py b/qpms/types.py index 151aaf2..402808c 100644 --- a/qpms/types.py +++ b/qpms/types.py @@ -5,6 +5,21 @@ module. """ import collections +import enum + +class NormalizationT(enum.IntEnum): + """ Corresponding to the c type qpms_normalization_t from translations.h """ + TAYLOR=1 + UNDEF=0 + +class BesselT(enum.IntEnum): + """ Corresponding to the c type qpms_bessel_t from translations.h """ + BESSEL_REGULAR = 1 + BESSEL_SINGULAR = 2 + HANKEL_PLUS = 3 + HANKEL_MINUS = 4 + UNDEF = 0 + ''' The namedtuples below might become classes or other objects in later versions.