Commit Graph

128 Commits

Author SHA1 Message Date
92789c718f Merge pull request #38 from pim-n/feature-plotter
Config parser, plotting, simulation engine
2026-03-02 11:42:07 +01:00
176baa543a flake8 + fix bug in seed type checking 2026-03-02 08:51:02 +01:00
dba1240e9f improve error handling and PEP8 2026-03-02 08:38:18 +01:00
9a169da520 update tests to follow new architecture 2026-02-25 15:05:22 +01:00
5c9841190f update main.py --test case to conform to new architecture. Update error handling in --config case. 2026-02-25 14:37:35 +01:00
561fb1dca1 update SegmentedRoadGenerator 2026-02-25 14:31:42 +01:00
39572da682 improve landscape architecture. builder is separate file. cleaned up hardcoded defaults 2026-02-25 14:26:49 +01:00
a74ea765d7 move ConfigParser to inputparser module and introduce config specs classes for structured config handling 2026-02-25 14:25:32 +01:00
58de830a39 add default values to central location 2026-02-25 14:22:46 +01:00
ae0a038948 add SimulationEngine and SimulationOutputs to compute results and pass standardized objects on to plotter 2026-02-25 14:21:59 +01:00
9944c06466 update plotting 2026-02-25 14:21:03 +01:00
5615914c7e update projection utlity functions 2026-02-25 14:20:11 +01:00
e926338b69 add InvalidIsotopeError and DimensionError 2026-02-25 14:17:14 +01:00
bab41c128b vectorize fluence calculation 2026-02-25 14:13:27 +01:00
c18f924348 add init for road_gen package 2026-02-20 12:02:28 +01:00
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
347ff4c102 Add badges for Python version and CI tests
Added badges for Python version and CI tests to README.
2026-02-20 11:44:54 +01:00
5fc806bd39 Add function to go from relative source position to absolute position. 2026-02-20 11:43:13 +01:00
0611b943a8 Merge pull request #35 from pim-n/33-add-ci-workflow-for-running-tests
33 add ci workflow for running tests
2026-02-20 11:42:15 +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
2d5ba0ac3c Updated config. Third test 2026-02-20 11:34:21 +01:00
81d2cd6f9e Fix indentation for checkout action in CI workflow 2026-02-20 11:30:52 +01:00
d32fd411bb Updated config. Second test 2026-02-20 11:25:51 +01:00
191c92e176 Merge branch '33-add-ci-workflow-for-running-tests' of github.com:pim-n/pg-rad into 33-add-ci-workflow-for-running-tests
Fetched changes from github. Fast-forward changes
2026-02-20 11:17:55 +01:00
8c0eeb3127 Updated config file for ci. Added dispatch 2026-02-20 11:17:36 +01:00
db86ee42b2 Updated config file for ci. Added dispatch 2026-02-20 11:16:37 +01:00
79ba5f7c83 Fix event name for pull request trigger 2026-02-20 11:00:22 +01:00
66c0b0c6cf Added ci for tests. First testing 2026-02-20 10:57:28 +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