Skip to content

Commit

Permalink
1) Fixed error in which recipe parser plugin was not included in GPUM…
Browse files Browse the repository at this point in the history
…odule core.

2) Tweaked README.md section on recipe strings.
3) Added acknowledgements
  • Loading branch information
Siddarth Maddali committed Apr 15, 2020
1 parent 39e339a commit 95445f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ phasingResult-2.mat
.*.*.swp
*.ipynb
deprecated/*
test_scripts/
1 change: 1 addition & 0 deletions GPUModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Solver(
def __init__( self, varDict ):
# see Phaser.py for definition of varDict
self.ImportCore( varDict )
self.generateAlgoDict()
return


Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ print( 'Bragg peak now at: ', maxHereNow )

## Creating initial support for phase retrieval
- This gets updated with a shrinkwrap algorithm
- Initial support should never be bigger than $1/3$ of array size.
- Initial support should never be bigger than half of the array size along each axis.


```python
Expand Down Expand Up @@ -374,6 +374,9 @@ PR_alt = ph.Phaser(
support=supInit.copy()
)
PR_alt.runRecipe( recipestr )
PR.Retrieve()
img = PR.finalImage
sup = PR.finalSupport
```

... and so on, to get the same result!
Expand Down Expand Up @@ -537,3 +540,8 @@ fig.savefig( 'images/scattererPhs_gpu.jpg')

# Upcoming features
- A simple partial coherence correction module

# Acknowledgements

- **Matthew Wilkin**<br/>
Dept. of Materials Science and Engg., Carnegie Mellon University

0 comments on commit 95445f1

Please sign in to comment.