From d53ebddede45fe06cd9f172a2579681e6ac6fae5 Mon Sep 17 00:00:00 2001
From: Lukas Platz <lplatz@mpa-garching.mpg.de>
Date: Tue, 29 Oct 2019 18:53:35 +0100
Subject: [PATCH] added deprecation warning to docstring

---
 nifty5/field.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nifty5/field.py b/nifty5/field.py
index 85b5d9742..ed2aff99d 100644
--- a/nifty5/field.py
+++ b/nifty5/field.py
@@ -234,6 +234,8 @@ class Field(object):
     def scalar_weight(self, spaces=None):
         """Returns the uniform volume element for a sub-domain of `self`.
 
+        DEPRECATED! Use `self.domain.scalar_weight` instead.
+
         Parameters
         ----------
         spaces : int, tuple of int or None
@@ -251,6 +253,8 @@ class Field(object):
     def total_volume(self, spaces=None):
         """Returns the total volume of the field's domain or of a subspace of it.
 
+        DEPRECATED! Use `self.domain.total_volume` instead.
+
         Parameters
         ----------
         spaces : int, tuple of int or None
-- 
GitLab