From 66e9408dc592150f7ff541e12f691ea573621266 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 25 Jul 2017 14:20:25 +0200 Subject: python wrapper: allow retrieving the amplitude from the BDContext object --- brill_data.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/brill_data.py b/brill_data.py index e46417c..e47ab07 100644 --- a/brill_data.py +++ b/brill_data.py @@ -157,3 +157,7 @@ class BrillData(object): raise RuntimeError('Error evaluating q') return q + + @property + def amplitude(self): + return self._bdctx.contents.__getattribute__('amplitude') -- cgit v1.2.3