Commit Graph

346 Commits

Author SHA1 Message Date
7009e505e7 fix accidental creation of array(None) 2023-05-22 10:52:55 -07:00
3bf56c16c1 More in-place ops
Z.copy() is needed since op is in-place now
2023-05-22 09:55:47 -07:00
5c7deedb70 do more in-place 2023-05-22 09:53:56 -07:00
fd1a83b5b9 cleaner way to ravel 2023-05-22 09:53:30 -07:00
7cf90fe0de use keepdims instead of readding dims 2023-05-22 09:52:52 -07:00
09aa9761c6 Use same variable names as in code 2022-11-27 12:36:53 -08:00
jan
697770ce97 improve top level bloch comment 2022-11-24 23:16:25 -08:00
jan
b7bd825bce make saving previous GtKG direction more obvious 2022-11-22 22:23:00 -08:00
jan
ff395277b0 add another comment about minmization 2022-11-22 22:21:51 -08:00
jan
dfbb845bee add some comments 2022-11-22 22:21:31 -08:00
a64afcbe4d Add more info to log message 2022-11-22 14:44:54 -08:00
03c15c8486 store ZtAZ instead of AZU
U is small (~number of modes)^2
2022-11-22 14:44:43 -08:00
bec0137c99 update type hints and formatting 2022-11-20 19:56:45 -08:00
68a9818388 use moveaxis instead of deprecated rollaxis 2022-11-20 19:55:51 -08:00
23d5a160c8 use f-string 2022-11-20 19:55:11 -08:00
jan
4144e6dc37 update comment 2022-11-19 19:33:50 -08:00
8f8c130c2f use previous result as next guess 2022-11-14 12:39:41 -08:00
4a9198ade7 allow setting initial guess 2022-11-14 12:39:29 -08:00
c7c71a3a82 add per-iteration callback 2022-11-14 12:20:50 -08:00
a82d8dfc7e pass k_bounds and k_guess instad of just k_min and k_max 2022-11-14 12:20:33 -08:00
86feb5461c don't use patient planner by default 2022-11-14 12:19:55 -08:00
edfd9a49c6 formatting 2022-10-06 13:45:04 -07:00
ad7c27eee3 bump version to v0.8 2022-10-04 17:29:13 -07:00
640b4d1ef7 Make find-k also return eigenvalues 2022-10-04 17:27:58 -07:00
4e240988c9 use "is None" to check for default args
numpy.any(numpy.equal(x, None)) is more general, because
`numpy.array(None) is not None`, but checking for that doesn't make much
sense if you're already type-checking
2022-10-04 17:27:44 -07:00
52df24ad98 Major typing updates
Split field types to differentiate between complex and purely-real

Fix lots of numpy-related stuff
2022-10-04 17:17:44 -07:00
31e6e0ec60 just check if file exists rather than trying to open 2022-10-04 17:09:14 -07:00
ad1ec6acfb Back off on FFTW args
multithreading in particular seems pretty detrimental
2022-10-04 14:35:30 -07:00
d4fcfa1e07 fix var name 2022-10-04 14:33:47 -07:00
ec9a6edc85 be explicit about stack axis 2022-10-04 14:33:36 -07:00
71d6ceec1e update to new fdtd approach 2022-10-04 14:32:54 -07:00
faecc79179 typing and formatting updates 2022-10-04 14:32:40 -07:00
d42a625e5f typing updates 2022-10-04 12:43:26 -07:00
eedcc7b919 update for new Gridlock 2022-10-04 12:29:11 -07:00
831c39246a drop pathlib prefix 2022-10-04 12:27:10 -07:00
6b0182c102 update README 2022-08-30 23:50:29 -07:00
e2ef6d1c8d move to hatch-based build 2022-08-30 23:49:39 -07:00
c0bbc1f46d fix fdtd pmls
integrate them into the update operations
2021-09-05 17:52:09 -07:00
01b4971388 Overlap is computed with the conjugate 2021-09-05 17:50:51 -07:00
d3db3ca91e fix formula not rendering 2021-09-05 17:50:34 -07:00
c06dd03a90 force remove in case the dir doesn't exist 2021-09-05 17:49:49 -07:00
cb0062f6f1 reduce matplotlib log spam 2021-09-05 17:49:08 -07:00
47e2cb2efc vec/unvec live in fdmath 2021-07-11 17:33:15 -07:00
81cd3d7d85 add html_helpers.py to templates 2021-07-11 17:27:56 -07:00
8ac0d52cd1 Add some docs for energy calculations 2021-07-11 17:27:56 -07:00
8c8f9f6e69 factor out omega**2 terms 2021-07-11 17:27:56 -07:00
204afb8024 Return: -> Returns: 2021-07-11 17:27:56 -07:00
a6ae3da4b1 update email 2021-07-11 17:27:56 -07:00
39f9de2e55 strip whitespace from version string 2021-07-11 17:27:56 -07:00
jan
fcca9e3ae5 Fix waveguide eigenvalue derivation
Thanks to Rafael Diaz Fuentes and Paolo Pintus for catching and
correcting these!
2021-07-05 15:01:08 -07:00