Skip to content

Commit

Permalink
DOCS: Fix error in usage documentation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JoostJM committed Sep 1, 2017
1 parent 7dcc2a9 commit 5ce9f48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -59,6 +59,7 @@ Documentation
(`#291 <https://github.com/Radiomics/pyradiomics/pull/291>`_)
- Include contributing guidelines in sphinx-generated documentation and add a section on sharing parameter files.
(`#294 <https://github.com/Radiomics/pyradiomics/pull/294>`_)
- Insert missing line to enable all features in documentation on using the feature classes directly.

Examples
########
Expand Down
1 change: 1 addition & 0 deletions docs/usage.rst
Expand Up @@ -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))
Expand Down

0 comments on commit 5ce9f48

Please sign in to comment.