Quellcode durchsuchen

readme: fix code sample reading from remote source

Fabian Peter Hammerle vor 4 Jahren
Ursprung
Commit
5994fbadca
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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