Преглед изворни кода

readme: fix code sample reading from remote source

Fabian Peter Hammerle пре 5 година
родитељ
комит
5994fbadca
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      README.rst

+ 1 - 1
README.rst

@@ -96,7 +96,7 @@ Load Stats File From Webserver, Amazon S3 or Google Cloud Storage
 .. code:: python
 
     >>> from freesurfer_stats import CorticalParcellationStats
-    >>> freesurfer_stats.CorticalParcellationStats('https://[...]/stats/rh.aparc.stats').read()
+    >>> stats = CorticalParcellationStats.read('https://[...]/stats/rh.aparc.stats')
     >>> stats.whole_brain_measurements['total_cortical_gray_matter_volume_mm^3']
     0    553998.311189
     Name: total_cortical_gray_matter_volume_mm^3, dtype: float64