Commit Graph

103 Commits

Author SHA1 Message Date
f1bed93ca7 add integrator for road generation 2026-02-20 12:01:33 +01:00
3a92f79a43 fix dataloader exception handling 2026-02-20 12:01:12 +01:00
80f7b71c38 Integrate modules from road-gen that are needed for segmented road generation 2026-02-20 11:59:09 +01:00
61dc05073a improve plotting visuals for path 2026-02-20 11:47:57 +01:00
cca514a2ba add MissingSubKeyError for config loading. update main.py for --config flag 2026-02-20 11:47:38 +01:00
265d3b0111 Add isotope lookup dictionary, so isotopes can be loaded from string in config. 2026-02-20 11:46:45 +01:00
8f652875dc update LandscapeDirector to be able to build from config. 2026-02-20 11:45:21 +01:00
5fc806bd39 Add function to go from relative source position to absolute position. 2026-02-20 11:43:13 +01:00
d53f7c5e2f Move fluence calcs to physics from landscape. Update LandScapeBuilder to accommodate config and segments 2026-02-20 11:40:36 +01:00
fdc11b4076 Add landscape config parser 2026-02-20 11:39:20 +01:00
c2b05c63a8 change intra-package import statements to have absolute path. this to avoid circular importing. the imports specified in __init__ of each module are only intended to be used outside of src (e.g. tests, API usage). 2026-02-17 10:11:03 +01:00
5684525d0f add plotting to test case. Add saveplot argument. Improve logging in LandscapeSlicePlotter 2026-02-17 09:46:30 +01:00
3fd2eafb2a add save and show options to Plotter 2026-02-17 09:41:54 +01:00
f49b2a5f8a Merge pull request #19 from pim-n/feature-fluence-rate
- Added mass attenuation interpolator
- PG fluence rate function that can be called at any position in the landscape
- Rewrote landscape module to pseudo-builder pattern (LandscapeBuilder & LandscapeConstructor)
- Added entry point (CLI)
- Verified installation process and updated instructions accordingly
- Updated tests
- various bugfixes
- various minor improvements
2026-02-13 16:18:52 +01:00
508cad474b Add scipy to requirements (due to interpolation of attenuation coeffs) 2026-02-13 16:13:55 +01:00
beb411d456 update tests to reflect new Landscape design 2026-02-13 16:07:42 +01:00
0db1fe0626 manually remove detector imports (not implemented yet) 2026-02-13 16:01:07 +01:00
845f006cd3 Update pyproject.toml and README.md to reflect new conditions. 2026-02-13 15:02:53 +01:00
ac8c38592d Add CLI entry point with --test flag for building test landscape using LandscapeDirector 2026-02-13 14:58:11 +01:00
a4fb4a7c57 Add LandscapeDirector with a test case to build landscape using LandscapeBuilder 2026-02-13 14:57:37 +01:00
e8bf687563 add default box height to ensure non-zero z dimension in the landscape 2026-02-13 14:56:27 +01:00
49a0dcd301 Improve isotopes and sources 2026-02-13 14:55:42 +01:00
26f96b06fe code file paths/names in config folder for more centralized definition of filenames 2026-02-13 14:50:02 +01:00
55258d7727 rename pg_rad logging->logger to avoid import conflict with default logging library. 2026-02-13 14:46:51 +01:00
82331f3bbd add default value for object position (0,0,0) 2026-02-12 16:48:16 +01:00
abc1195c91 Rewrite preset isotope 2026-02-12 14:45:24 +01:00
a95cca26d9 Move landscape construction to LandscapeBuilder object 2026-02-12 14:43:41 +01:00
8274b5e371 add size of path as attribute to Path 2026-02-12 14:41:05 +01:00
4f72fe8ff4 Add OutOfBoundsError 2026-02-12 14:02:13 +01:00
9b0c77d254 Merge branch 'feature-fluence-rate' of github.com:pim-n/pg-rad into feature-fluence-rate 2026-02-12 13:33:36 +01:00
225287c46a Merge pull request #27 from pim-n/dev
pull latest dev
2026-02-12 13:32:59 +01:00
6ceffb4361 Move plotting functionality out of Landscape to LandscapeSlicePlotter 2026-02-12 09:28:37 +01:00
08299724e1 Merge pull request #20 from pim-n/remove-path-simplify
Remove path simplify
2026-02-10 14:15:10 +01:00
3aff764075 update __init__.py to remove simplify_path 2026-02-10 14:11:12 +01:00
05a71c31a8 remove piecewise_regression from requirements 2026-02-10 14:08:57 +01:00
f5cc5218e6 remove simplify_path functionality 2026-02-10 14:08:40 +01:00
3f7395ed70 add fluence function to landscape and update to new position system 2026-02-10 13:53:57 +01:00
d9e3f2a209 remove simplify path tests 2026-02-10 13:49:09 +01:00
0971c2bab9 fix typo in unit conversion 2026-02-10 11:28:38 +01:00
9c1b97d912 Update sources and objects to new position system 2026-02-10 11:24:40 +01:00
a1acf95004 update sources tests to accomodate new pos attribute 2026-02-09 15:36:23 +01:00
016ea6b783 add tests for fluence rate and attenuation interpolation 2026-02-09 15:35:22 +01:00
2b85a07aa0 add attenuation table 2026-02-09 15:34:05 +01:00
d6d9fa6f92 update init for isotopes module 2026-02-09 15:32:49 +01:00
521e5a556e Add isotope presets file 2026-02-09 15:32:19 +01:00
0c81b4df89 Add mu_mass_air to isotope automatically calculated from energy and fix error msg 2026-02-09 15:31:53 +01:00
2c436c52ad generate init for physics module 2026-02-09 15:30:27 +01:00
d4b67be775 Add primary photon fluence at distance R from point source 2026-02-09 15:29:46 +01:00
c2ddc5bfe2 Add attenuation interpolator 2026-02-09 15:29:30 +01:00
08a056a32d fix Object -> BaseOject reference 2026-02-05 14:37:37 +01:00