aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-07-25 14:20:25 +0200
committerAnton Khirnov <anton@khirnov.net>2017-07-25 14:20:25 +0200
commit66e9408dc592150f7ff541e12f691ea573621266 (patch)
tree10f5b2b89a861fdda1aae41a161de1d4b114f601
parente507f8ef32ccfaef86d658690d8bb78484619d4c (diff)
python wrapper: allow retrieving the amplitude from the BDContext object
-rw-r--r--brill_data.py4
1 files changed, 4 insertions, 0 deletions
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')