Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
59dd78a
version to 0.2.3 and update Python requirements; refine dependencies …
ShantanuKodgirwar Mar 27, 2026
fa8dc93
Removed the duplicate (buggy) getOrientation definition that crashed
ShantanuKodgirwar Mar 27, 2026
cd82f64
Add .python-version, .DS_Store, and .idea to .gitignore
ShantanuKodgirwar Mar 27, 2026
cbf3964
Add support for minimal stub data in ExperimentalData for testing wit…
ShantanuKodgirwar Mar 27, 2026
062b280
big refactor: moving tests to a separate tests directory + using pyte…
ShantanuKodgirwar Mar 27, 2026
b5347ca
Update CONTRIBUTING.md to include 'tests' in uv sync commands and add…
ShantanuKodgirwar Mar 27, 2026
606d063
Ensure TensorFlow is imported conditionally in test_TensorboardMonito…
ShantanuKodgirwar Mar 27, 2026
7895187
Update Python version badge in README.md to reflect support for Pytho…
ShantanuKodgirwar Mar 27, 2026
9270bc8
Add GitHub Actions workflow for automated testing
ShantanuKodgirwar Mar 27, 2026
fb7ddd1
minor badge correction
ShantanuKodgirwar Mar 27, 2026
b622da9
adding `self.propagator` as an alias for `self.propagatorType`
ShantanuKodgirwar Mar 27, 2026
33def74
minor change
ShantanuKodgirwar Mar 27, 2026
eb3d283
since lock file is not tracked, removing precommit file and updating …
ShantanuKodgirwar Mar 29, 2026
53eaaf6
adding key features and combining info from now redundant CONTRIBUTIN…
ShantanuKodgirwar Mar 29, 2026
acb6954
removing the redundant file
ShantanuKodgirwar Mar 29, 2026
8037de8
minor change under contributing info
ShantanuKodgirwar Mar 29, 2026
30491e1
minor readme update
ShantanuKodgirwar Mar 29, 2026
c2db2e3
minor update
ShantanuKodgirwar Mar 29, 2026
6b81ecd
combining tests and dev as a common flag in toml + update text in rea…
ShantanuKodgirwar Mar 29, 2026
9ac1805
some text update to key features
ShantanuKodgirwar Mar 30, 2026
fe734ed
updating readme title
ShantanuKodgirwar Mar 30, 2026
c9aaf4b
minor change
ShantanuKodgirwar Mar 30, 2026
159ec2b
shortened title
ShantanuKodgirwar Mar 30, 2026
e1ed2f1
minor text change
ShantanuKodgirwar Mar 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]

steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
version: "0.5.16"
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync
- name: Run tests
run: uv run pytest tests
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
*.venv
logs_tensorboard
*.hdf5
*.lock
*.lock
.python-version
.DS_Store
.idea
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions CONTRIBUTING.md

This file was deleted.

Empty file removed PtyLab/Engines/test/__init__.py
Empty file.
36 changes: 0 additions & 36 deletions PtyLab/Engines/test/test_baseReconstructor.py

This file was deleted.

17 changes: 0 additions & 17 deletions PtyLab/Engines/test/test_ePIE.py

This file was deleted.

43 changes: 0 additions & 43 deletions PtyLab/Engines/test/test_propagator.py

This file was deleted.

97 changes: 0 additions & 97 deletions PtyLab/Engines/test_BaseEngine.py

This file was deleted.

16 changes: 16 additions & 0 deletions PtyLab/ExperimentalData/ExperimentalData.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,22 @@ def loadData(self, filename=None):
"""
import os

if str(filename) == "test:nodata":
self.filename = filename
# Set minimal stub data so the object is usable without a file
self.ptychogram = np.zeros((1, 16, 16), dtype=np.float32)
self.encoder = np.zeros((1, 2), dtype=np.float64)
self.wavelength = 500e-9
self.dxd = 6.5e-6
self.zo = 0.1
# optional fields
self.entrancePupilDiameter = None
self.spectralDensity = None
self.theta = None
self.emptyBeam = None
self._setData()
return

if not os.path.exists(filename) and str(filename).startswith("example:"):
self.filename = filename
from PtyLab.io.readExample import examplePath
Expand Down
Empty file.
13 changes: 0 additions & 13 deletions PtyLab/ExperimentalData/test/test_experimentalData.py

This file was deleted.

Empty file removed PtyLab/Monitor/test/__init__.py
Empty file.
28 changes: 0 additions & 28 deletions PtyLab/Monitor/test/test_TensorboardMonitor.py

This file was deleted.

Loading