Commit Graph

39 Commits (master)

Author SHA1 Message Date
Jan Petykiewicz ec5c77e018 typing and formatting updates 2 years ago
Jan Petykiewicz 85d9ff7ace use dtype when allocating 3 years ago
Jan Petykiewicz f04aec9a1b rename eps -> foreground 3 years ago
Jan Petykiewicz 078bec08d3 Make epsilon float32 by default 3 years ago
Jan Petykiewicz 22f218c054 Grid.save() should return self 3 years ago
Jan Petykiewicz b9f6507498 doc and type hint fixes 3 years ago
Jan Petykiewicz 7340d41f10 Use f-strings where possible 3 years ago
Jan Petykiewicz ff5ffb2f40 Remove is_scalar() in favor of numpy.size(...)==1 3 years ago
Jan Petykiewicz 551da07f3e Move `.grids` data into separate `cell_data` array. Also remove `Direction` enum 3 years ago
Jan Petykiewicz fbf173072a avoid importing a bunch of numpy functions 3 years ago
Jan Petykiewicz f486209950 general cleanup and typing fixes 3 years ago
Jan Petykiewicz db9e7831b9 move to simpler docstring format and improve type annotations 3 years ago
Jan Petykiewicz a900946890 fix crash in shifted_exyz 4 years ago
Jan Petykiewicz d4b0177386 more member docs 5 years ago
Jan Petykiewicz 00dd0718fa fix center calculation 5 years ago
Jan Petykiewicz aab3754d1a move member docs to __init__ 5 years ago
Jan Petykiewicz e97bd482a9 initialize to 1.0 instead of (1.0,)*3
matches docs, and works better in cases where there are more/fewer grids
5 years ago
Jan Petykiewicz 0c4a773b84 Make .grids an ndarray instead of a list-of-ndarrays 5 years ago
jan 24d012fccc Warnings should reference their caller 5 years ago
Jan Petykiewicz c524b28fe6 fixup center calculation 5 years ago
jan 6db836d3a3 Split Grid class into multiple files 7 years ago
Jan Petykiewicz c7572c9c8d fix drawing in non-polygon axis 7 years ago
Jan Petykiewicz 81bc655908 Add experimental support for negative shifts 7 years ago
Jan Petykiewicz a76fef0449 Improve error checking 7 years ago
Jan Petykiewicz e65f25cc68 Clarify shifts documentation 7 years ago
Jan Petykiewicz e0ed0a324c Cosmetic changes 7 years ago
jan 66db2398ff add whitespace 7 years ago
jan 3d36f66a39 warn if grid is going to be int-typed 7 years ago
jan e930baf2b4 fix and improve error-checking for shifts parameter 7 years ago
jan a94a91446e Allow arbitrary args to pcolormesh during visualization 7 years ago
jan c8cbf26a8c Fix use of enum for surface_normal for visualize_slice 8 years ago
jan 1e4ee5e057 add autoshift_dxyz and copy() 8 years ago
jan 4e0e71fad9 Clean up documentation and default values 8 years ago
jan 0a95bcda1b Add get_slice method for easy interpolation 8 years ago
jan 55d9f33090 Split up E and H Yee shifts
Use E shifts by default.
8 years ago
jan b7ff35485e Add an option to defer showing plots when calling visualize_* 8 years ago
jan e135f8147e fix draw_cuboid 8 years ago
jan ea56eb93ff fix index 8 years ago
jan e6f51d721a add all files 8 years ago