Skip to content

Commit

Permalink
phase recon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gianthk committed Dec 1, 2023
1 parent a4c7311 commit a31c629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ You can take a look at [solara's documnetation](https://solara.dev/api) for more
## Integration with Google Sheets
- `Alrecon` allows you to keep a consistent log of all reconstruction jobs on an online master Google spreadsheet.
- The integration uses [gspread](https://docs.gspread.org/en/v5.12.0/), a Python API for Google Sheets.
- Follow these instructions to get
- You will need to setup your Google Cloud account, enable [Google Sheets API](https://developers.google.com/sheets/api/guides/concepts), and create a Secret Key with read/write permission to your online master Google sheet. Follow [these instructions](https://www.youtube.com/watch?v=hyUw-koO2DA) to setup the integration with Google Sheets API.

## Use with [napari](https://napari.org/stable/)
Expand Down
5 changes: 3 additions & 2 deletions alrecon/components/alrecon.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,10 @@ def processed_sinogram(self):

if self.phase_object.value:
if self.phase_retrieved.value:
return self.projs_phase
logger.info("Applied -log transform.")
return tomopy.minus_log(self.projs_phase, ncore=self.ncore.value)
else:
logger.error("Phase object was selected but phase information is not retrieved. I will reconstruct an absorption object.")
logger.error("Phase object was selected but phase shift was not retrieved. I will reconstruct an absorption object.")
logger.info("Applied -log transform.")
return tomopy.minus_log(self.sinogram(), ncore=self.ncore.value)
else:
Expand Down

0 comments on commit a31c629

Please sign in to comment.