-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multislice & object comparisons (#62)
- Add support for even/odd split reconstructions - Support object comparisons and Fourier Ring Correlation (FRC) - Support loading and viewing multi-layer (multislice) objects including layer distance - Relocate diffraction pattern loading to wizard in detectors view - Simplify behavior of diffraction pattern crop widgets - Add new mouse tools to image view: move, ruler, rectangle, line-cut - Add option to view complex array intensity - Add color legends for acyclic and cyclic quantities to image view - Fix tike cost function plots - Add memory usage monitor widget - Add Fourier Zone Plate (FZP) presets for several Advanced Photon Source (APS) instruments - Add space-deliminated scan position reader to support format used for NXSchool IC datasets - Update interface to support PtychoNN v0.2 - Extract probe/object classes and refactor
- Loading branch information
1 parent
ed84ed8
commit fa07fee
Showing
118 changed files
with
4,245 additions
and
2,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
from __future__ import annotations | ||
from dataclasses import dataclass | ||
from decimal import Decimal | ||
|
||
|
||
@dataclass(frozen=True) | ||
class FresnelZonePlate: | ||
zonePlateDiameterInMeters: float | ||
outermostZoneWidthInMeters: float | ||
centralBeamstopDiameterInMeters: float | ||
|
||
def focalLengthInMeters(self, centralWavelengthInMeters: float) -> float: | ||
return self.zonePlateDiameterInMeters * self.outermostZoneWidthInMeters \ | ||
/ centralWavelengthInMeters | ||
|
||
|
||
@dataclass(frozen=True) | ||
class PixelGeometry: | ||
widthInMeters: Decimal | ||
heightInMeters: Decimal | ||
widthInMeters: float | ||
heightInMeters: float | ||
|
||
@classmethod | ||
def createNull(cls) -> PixelGeometry: | ||
return cls(0., 0.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.