From 97e4f35fd81cb3091a95be683f86d4f0086537a8 Mon Sep 17 00:00:00 2001 From: hrocho Date: Tue, 18 Sep 2018 19:03:17 +0200 Subject: [PATCH] python module --- catima.pyx | 4 ++++ catimac.pxd | 1 + 2 files changed, 5 insertions(+) diff --git a/catima.pyx b/catima.pyx index 30e2d5f..2117054 100644 --- a/catima.pyx +++ b/catima.pyx @@ -64,6 +64,10 @@ cdef class Material: return self.cbase.thickness() else: return self.cbase.thickness(val) + + def thickness_cm(self, val): + return self.cbase.thickness_cm(val) + def I(self, val=None): if(val is None): return self.cbase.I() diff --git a/catimac.pxd b/catimac.pxd index 1aced61..56e8011 100644 --- a/catimac.pxd +++ b/catimac.pxd @@ -48,6 +48,7 @@ cdef extern from "catima/structures.h" namespace "catima": void density(double val) double thickness() void thickness(double val) + void thickness_cm(double val) void calculate() double I() void I(double val)