From 5ce9f487d00998301958f1f6a8eda09446279c40 Mon Sep 17 00:00:00 2001 From: Joost van Griethuysen Date: Fri, 1 Sep 2017 11:42:16 -0400 Subject: [PATCH] DOCS: Fix error in usage documentation In the documentation on using the feature classes directly, the line to enable all features in the first order feature class was missing. This resulted in no features being calculated, as on the feature class level, all features are disabled by default. --- CHANGES.rst | 1 + docs/usage.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 24ade995..0b55041d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -59,6 +59,7 @@ Documentation (`#291 `_) - Include contributing guidelines in sphinx-generated documentation and add a section on sharing parameter files. (`#294 `_) +- Insert missing line to enable all features in documentation on using the feature classes directly. Examples ######## diff --git a/docs/usage.rst b/docs/usage.rst index 006d2f54..a14ff3e6 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -156,6 +156,7 @@ Using feature classes directly * Calculate the first order features:: firstOrderFeatures = firstorder.RadiomicsFirstOrder(image,mask) + firstOrderFeatures.enableAllFeatures() # On the feature class level, all features are disabled by default. firstOrderFeatures.calculateFeatures() for (key,val) in six.iteritems(firstOrderFeatures.featureValues): print("\t%s: %s" % (key, val))