gitronics 0.5.24__tar.gz → 0.5.25__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. {gitronics-0.5.24 → gitronics-0.5.25}/Cargo.lock +1 -1
  2. {gitronics-0.5.24 → gitronics-0.5.25}/Cargo.toml +1 -1
  3. {gitronics-0.5.24 → gitronics-0.5.25}/PKG-INFO +1 -1
  4. {gitronics-0.5.24 → gitronics-0.5.25}/README.md +9 -0
  5. {gitronics-0.5.24 → gitronics-0.5.25}/docs/examples.md +12 -4
  6. {gitronics-0.5.24 → gitronics-0.5.25}/docs/index.md +10 -0
  7. {gitronics-0.5.24 → gitronics-0.5.25}/mkdocs.yml +4 -4
  8. {gitronics-0.5.24 → gitronics-0.5.25}/src/build_model.rs +1 -1
  9. {gitronics-0.5.24 → gitronics-0.5.25}/src/migrate_model.rs +0 -1
  10. {gitronics-0.5.24 → gitronics-0.5.25}/.github/workflows/ci.yml +0 -0
  11. {gitronics-0.5.24 → gitronics-0.5.25}/.github/workflows/docs.yml +0 -0
  12. {gitronics-0.5.24 → gitronics-0.5.25}/.github/workflows/release.yml +0 -0
  13. {gitronics-0.5.24 → gitronics-0.5.25}/.gitignore +0 -0
  14. {gitronics-0.5.24 → gitronics-0.5.25}/.vscode/settings.json +0 -0
  15. {gitronics-0.5.24 → gitronics-0.5.25}/LICENSE +0 -0
  16. {gitronics-0.5.24 → gitronics-0.5.25}/docs/assets/logo.png +0 -0
  17. {gitronics-0.5.24 → gitronics-0.5.25}/docs/best_practices.md +0 -0
  18. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/assessments.md +0 -0
  19. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/building_a_model.md +0 -0
  20. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/card_id_numbers.md +0 -0
  21. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/concepts.md +0 -0
  22. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/configuration_file.md +0 -0
  23. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/file_types.md +0 -0
  24. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/migrating.md +0 -0
  25. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/new_project.md +0 -0
  26. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started/project_structure.md +0 -0
  27. {gitronics-0.5.24 → gitronics-0.5.25}/docs/getting_started.md +0 -0
  28. {gitronics-0.5.24 → gitronics-0.5.25}/docs/hooks/version_from_git.py +0 -0
  29. {gitronics-0.5.24 → gitronics-0.5.25}/docs/installation.md +0 -0
  30. {gitronics-0.5.24 → gitronics-0.5.25}/docs/requirements.txt +0 -0
  31. {gitronics-0.5.24 → gitronics-0.5.25}/docs/usage/build.md +0 -0
  32. {gitronics-0.5.24 → gitronics-0.5.25}/docs/usage/migrate.md +0 -0
  33. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/assessment_specific/filler_model_3.mcnp +0 -0
  34. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/assessment_specific/filler_model_3.metadata +0 -0
  35. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/assessment_specific/small_override.yaml +0 -0
  36. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/configurations/valid_configuration.yaml +0 -0
  37. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/output/.gitignore +0 -0
  38. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/data_cards/fine_mesh.tally +0 -0
  39. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/data_cards/materials.mat +0 -0
  40. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/data_cards/my_transform.transform +0 -0
  41. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/data_cards/volumetric_source.source +0 -0
  42. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/envelope_structure.mcnp +0 -0
  43. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/envelope_structure.metadata +0 -0
  44. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/filler_models/filler_model_1.mcnp +0 -0
  45. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/filler_models/filler_model_1.metadata +0 -0
  46. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/filler_models/filler_model_2.mcnp +0 -0
  47. {gitronics-0.5.24 → gitronics-0.5.25}/example_project/reference_model/filler_models/filler_model_2.metadata +0 -0
  48. {gitronics-0.5.24 → gitronics-0.5.25}/pyproject.toml +0 -0
  49. {gitronics-0.5.24 → gitronics-0.5.25}/python/gitronics/__init__.py +0 -0
  50. {gitronics-0.5.24 → gitronics-0.5.25}/python/gitronics/__main__.py +0 -0
  51. {gitronics-0.5.24 → gitronics-0.5.25}/python/gitronics/gitronics.pyi +0 -0
  52. {gitronics-0.5.24 → gitronics-0.5.25}/python/tests/test_build_model.py +0 -0
  53. {gitronics-0.5.24 → gitronics-0.5.25}/python/tests/test_cli_works.py +0 -0
  54. {gitronics-0.5.24 → gitronics-0.5.25}/resources/simple_model.mcnp +0 -0
  55. {gitronics-0.5.24 → gitronics-0.5.25}/src/build_report.rs +0 -0
  56. {gitronics-0.5.24 → gitronics-0.5.25}/src/cli.rs +0 -0
  57. {gitronics-0.5.24 → gitronics-0.5.25}/src/lib.rs +0 -0
  58. {gitronics-0.5.24 → gitronics-0.5.25}/src/main.rs +0 -0
  59. {gitronics-0.5.24 → gitronics-0.5.25}/src/model_config.rs +0 -0
  60. {gitronics-0.5.24 → gitronics-0.5.25}/src/project_manager/load_metadata.rs +0 -0
  61. {gitronics-0.5.24 → gitronics-0.5.25}/src/project_manager/load_model_config.rs +0 -0
  62. {gitronics-0.5.24 → gitronics-0.5.25}/src/project_manager/load_project_files.rs +0 -0
  63. {gitronics-0.5.24 → gitronics-0.5.25}/src/project_manager.rs +0 -0
  64. {gitronics-0.5.24 → gitronics-0.5.25}/src/python.rs +0 -0
  65. {gitronics-0.5.24 → gitronics-0.5.25}/src/report.css +0 -0
  66. {gitronics-0.5.24 → gitronics-0.5.25}/src/types.rs +0 -0
  67. {gitronics-0.5.24 → gitronics-0.5.25}/src/utils.rs +0 -0
  68. {gitronics-0.5.24 → gitronics-0.5.25}/tests/test_example_project.rs +0 -0
@@ -390,7 +390,7 @@ dependencies = [
390
390
 
391
391
  [[package]]
392
392
  name = "gitronics"
393
- version = "0.5.24"
393
+ version = "0.5.25"
394
394
  dependencies = [
395
395
  "chrono",
396
396
  "clap",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "gitronics"
3
- version = "0.5.24"
3
+ version = "0.5.25"
4
4
  edition = "2024"
5
5
  description = "Build MCNP neutronics models from modular components"
6
6
  license = "EUPL-1.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitronics
3
- Version: 0.5.24
3
+ Version: 0.5.25
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -15,6 +15,8 @@ Gitronics lets you decompose a monolithic [MCNP](https://mcnp.lanl.gov/) input f
15
15
 
16
16
  **Full documentation: [fusion4energy.github.io/gitronics](https://fusion4energy.github.io/gitronics/latest/)**
17
17
 
18
+ The Gitronics methodology is already used to maintain the most complex neutronics models of the [ITER](https://www.iter.org/) fusion reactor, and [JT-60SA](https://www.jt60sa.org/) tokamak.
19
+
18
20
  ## Why?
19
21
 
20
22
  | Problem with monolithic models | Gitronics solution |
@@ -98,6 +100,13 @@ The full documentation covers installation, CLI reference, configuration options
98
100
 
99
101
  **[fusion4energy.github.io/gitronics](https://fusion4energy.github.io/gitronics/latest/)**
100
102
 
103
+ ## Publication
104
+
105
+ Gitronics is described in the following publication:
106
+
107
+ - Cubi, A., et al. *Novel modular and Git-based approach for the management and development of radiation transport models*. [Fusion Engineering and Design](https://www.sciencedirect.com/journal/fusion-engineering-and-design), 2025. [https://doi.org/10.1016/j.fusengdes.2025.115248](https://doi.org/10.1016/j.fusengdes.2025.115248)
108
+
109
+
101
110
  ## License
102
111
 
103
112
  [EUPL-1.2](LICENSE)
@@ -15,10 +15,18 @@ example_project/
15
15
  └── reference_model/
16
16
  ├── envelope_structure.mcnp
17
17
  ├── envelope_structure.metadata
18
- └── filler_models/
19
- ├── filler_model_1.mcnp
20
- ├── filler_model_1.metadata
21
- └── filler_model_2.mcnp
18
+ ├── filler_models/
19
+ ├── filler_model_1.mcnp
20
+ ├── filler_model_1.metadata
21
+ └── filler_model_2.mcnp
22
+ ├── source/
23
+ │ └── volumetric_source.mcnp
24
+ ├── materials/
25
+ │ └── materials.mcnp
26
+ ├── transformations/
27
+ │ └── my_transform.mcnp
28
+ └── tallies/
29
+ └── fine_mesh.mcnp
22
30
  ```
23
31
 
24
32
  ### Configuration
@@ -14,6 +14,8 @@ This workflow enables:
14
14
  - **Parallelism** — teams can develop different sub-models independently.
15
15
  - **Reproducibility** — each assembled model records the git commit hash and build timestamp in its metadata.
16
16
 
17
+ The Gitronics methodology is already used to maintain the most complex neutronics models of the [ITER](https://www.iter.org/) fusion reactor, and [JT-60SA](https://www.jt60sa.org/) tokamak.
18
+
17
19
  ---
18
20
 
19
21
  ## How it works
@@ -43,6 +45,14 @@ If you have never used Gitronics before, please take a few minutes to read the w
43
45
 
44
46
  ---
45
47
 
48
+ ## Publication
49
+
50
+ Gitronics is described in the following publication:
51
+
52
+ - Cubi, A., et al. *Novel modular and Git-based approach for the management and development of radiation transport models*. [Fusion Engineering and Design](https://www.sciencedirect.com/journal/fusion-engineering-and-design), 2025. [https://doi.org/10.1016/j.fusengdes.2025.115248](https://doi.org/10.1016/j.fusengdes.2025.115248)
53
+
54
+ ---
55
+
46
56
  ## Quick links
47
57
 
48
58
  - [Installation](installation.md)
@@ -11,14 +11,14 @@ theme:
11
11
  favicon: assets/logo.png
12
12
  palette:
13
13
  - scheme: default
14
- primary: deep purple
15
- accent: teal
14
+ # primary: deep purple
15
+ # accent: teal
16
16
  toggle:
17
17
  icon: material/brightness-7
18
18
  name: Switch to dark mode
19
19
  - scheme: slate
20
- primary: deep purple
21
- accent: teal
20
+ # primary: deep purple
21
+ # accent: teal
22
22
  toggle:
23
23
  icon: material/brightness-4
24
24
  name: Switch to light mode
@@ -92,7 +92,7 @@ pub fn build_model(config_path: &Path, output_path: &Path) -> Result<(), Gitroni
92
92
  }
93
93
 
94
94
  static ENVELOPE_RE: LazyLock<Regex> =
95
- LazyLock::new(|| Regex::new(r"\$\s*@env:\s*(\w+)\s*").unwrap());
95
+ LazyLock::new(|| Regex::new(r"\$\s*@env:\s*([[:alnum:]_.-]+)\s*").unwrap());
96
96
 
97
97
  fn collect_build_report(
98
98
  config_path: &Path,
@@ -230,7 +230,6 @@ mod tests {
230
230
  let temp_dir = tempdir().unwrap();
231
231
  let output_path = temp_dir.path().join("output.mcnp");
232
232
  let result = migrate_model(&mcnp_input, &output_path);
233
- dbg!(&result);
234
233
  assert!(result.is_ok());
235
234
  }
236
235
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes