And update the readme

This commit is contained in:
Abe Levitan committed 2022-06-08 13:33:17 -07:00
1 parent 08eb1ad2ef
commit a37b30f06d
1 file changed
+2 -2
+2 -2
View File
@@ -5,11 +5,11 @@ CDTools is a python library for ptychography and CDI reconstructions, using an A
```python
# imports
from matplotlib import pyplot as plt
from cdtools.datasets import Ptycho_2D_Dataset
from cdtools.datasets import Ptycho2DDataset
from cdtools.models import FancyPtycho
# Load the file
dataset = Ptycho_2D_Dataset.from_cxi('ptycho_data.cxi')
dataset = Ptycho2DDataset.from_cxi('ptycho_data.cxi')
# Generate a model from the data
model = FancyPtycho.from_dataset(dataset)