gitronics 0.5.5__tar.gz → 0.5.6__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.
- {gitronics-0.5.5 → gitronics-0.5.6}/Cargo.lock +8 -1
- {gitronics-0.5.5 → gitronics-0.5.6}/Cargo.toml +2 -1
- {gitronics-0.5.5 → gitronics-0.5.6}/PKG-INFO +1 -1
- {gitronics-0.5.5 → gitronics-0.5.6}/README.md +5 -5
- {gitronics-0.5.5 → gitronics-0.5.6}/mkdocs.yml +2 -2
- {gitronics-0.5.5 → gitronics-0.5.6}/src/project_manager.rs +2 -2
- gitronics-0.5.5/python/gitronics/__main__.py +0 -3
- {gitronics-0.5.5 → gitronics-0.5.6}/.github/workflows/ci.yml +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/.github/workflows/docs.yml +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/.github/workflows/release.yml +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/.gitignore +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/LICENSE +0 -0
- {gitronics-0.5.5/docs → gitronics-0.5.6/docs/assets}/logo.png +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/best-practices.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/changelog.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/examples.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/getting-started.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/index.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/installation.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/requirements.txt +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/usage/build.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/usage/configuration.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/docs/usage/migrate.md +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/assessment_specific/filler_model_3.mcnp +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/assessment_specific/filler_model_3.metadata +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/assessment_specific/small_override.yaml +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/configurations/valid_configuration.yaml +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/output/.gitignore +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/data_cards/fine_mesh.tally +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/data_cards/materials.mat +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/data_cards/my_transform.transform +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/data_cards/volumetric_source.source +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/envelope_structure.mcnp +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/envelope_structure.metadata +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/filler_models/filler_model_1.mcnp +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/filler_models/filler_model_1.metadata +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/filler_models/filler_model_2.mcnp +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/filler_models/filler_model_2.metadata +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/pyproject.toml +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/python/gitronics/__init__.py +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/python/tests/test_cli_works.py +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/resources/simple_model.mcnp +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/build_model.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/cli.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/lib.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/main.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/migrate_model.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/model_config.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/project_manager/load_metadata.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/project_manager/load_model_config.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/project_manager/load_project_files.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/python.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/types.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/src/utils.rs +0 -0
- {gitronics-0.5.5 → gitronics-0.5.6}/tests/test_example_project.rs +0 -0
|
@@ -238,6 +238,12 @@ version = "0.8.21"
|
|
|
238
238
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
239
239
|
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
240
240
|
|
|
241
|
+
[[package]]
|
|
242
|
+
name = "dunce"
|
|
243
|
+
version = "1.0.5"
|
|
244
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
245
|
+
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
|
|
246
|
+
|
|
241
247
|
[[package]]
|
|
242
248
|
name = "either"
|
|
243
249
|
version = "1.15.0"
|
|
@@ -384,10 +390,11 @@ dependencies = [
|
|
|
384
390
|
|
|
385
391
|
[[package]]
|
|
386
392
|
name = "gitronics"
|
|
387
|
-
version = "0.5.
|
|
393
|
+
version = "0.5.6"
|
|
388
394
|
dependencies = [
|
|
389
395
|
"chrono",
|
|
390
396
|
"clap",
|
|
397
|
+
"dunce",
|
|
391
398
|
"env_logger",
|
|
392
399
|
"git2",
|
|
393
400
|
"indexmap",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "gitronics"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.6"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
description = "Build MCNP neutronics models from modular components"
|
|
6
6
|
license = "EUPL-1.2"
|
|
@@ -29,6 +29,7 @@ regex = "1.12.3"
|
|
|
29
29
|
clap = { version = "4.6.1", features = ["derive"] }
|
|
30
30
|
indexmap = { version = "2.14.0", features = ["serde"] }
|
|
31
31
|
git2 = "0.21.0"
|
|
32
|
+
dunce = "1.0.5"
|
|
32
33
|
|
|
33
34
|
[dev-dependencies]
|
|
34
35
|
tempfile = "3.0"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="docs/logo.png" alt="Gitronics logo" width="140"/>
|
|
2
|
+
<img src="docs/assets/logo.png" alt="Gitronics logo" width="140"/>
|
|
3
3
|
<h1>Gitronics</h1>
|
|
4
4
|
<p><strong>Build MCNP neutronics models from modular, version-controlled components.</strong></p>
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
Gitronics lets you decompose a monolithic
|
|
14
|
+
Gitronics lets you decompose a monolithic [MCNP](https://mcnp.lanl.gov/) input file into independent, version-controllable components — universe filler models, an envelope structure, and separate data cards — and reassemble them at build time via a YAML configuration.
|
|
15
15
|
|
|
16
16
|
**Full documentation: [fusion4energy.github.io/gitronics](https://fusion4energy.github.io/gitronics/latest/)**
|
|
17
17
|
|
|
@@ -60,7 +60,7 @@ gitronics migrate --help
|
|
|
60
60
|
my_project/
|
|
61
61
|
├── configurations/
|
|
62
62
|
│ ├── baseline.yaml ← declares which fillers go where
|
|
63
|
-
│ └── variant_A.yaml ← inherits baseline, overrides
|
|
63
|
+
│ └── variant_A.yaml ← inherits baseline, overrides some fields
|
|
64
64
|
├── output/
|
|
65
65
|
│ └── .gitignore
|
|
66
66
|
└── reference_model/
|
|
@@ -77,7 +77,7 @@ my_project/
|
|
|
77
77
|
## Configuration example
|
|
78
78
|
|
|
79
79
|
```yaml
|
|
80
|
-
project_roots: [..]
|
|
80
|
+
project_roots: [..] # Relative to this file's location
|
|
81
81
|
|
|
82
82
|
envelope_structure: envelope_structure
|
|
83
83
|
source: dt_plasma
|
|
@@ -87,7 +87,7 @@ tallies: [tritium_breeding_ratio]
|
|
|
87
87
|
envelopes:
|
|
88
88
|
blanket_inner: blanket_v3
|
|
89
89
|
blanket_outer: blanket_reference
|
|
90
|
-
divertor:
|
|
90
|
+
divertor: null # void — no FILL card inserted
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
Configurations support inheritance: a variant config can set `overrides: baseline.yaml` and override only the fields that differ.
|
|
@@ -4,7 +4,7 @@ use crate::types::{EnvelopeName, FileName, FillerName};
|
|
|
4
4
|
use crate::utils::{GitronicsError, get_file_paths};
|
|
5
5
|
use std::collections::HashMap;
|
|
6
6
|
use std::collections::hash_map::Entry;
|
|
7
|
-
use std::fs::
|
|
7
|
+
use std::fs::create_dir_all;
|
|
8
8
|
use std::path::PathBuf;
|
|
9
9
|
|
|
10
10
|
mod load_metadata;
|
|
@@ -102,7 +102,7 @@ fn index_project_files(
|
|
|
102
102
|
return Err(GitronicsError::DuplicateFileName(entry.key().clone()));
|
|
103
103
|
}
|
|
104
104
|
Entry::Vacant(entry) => {
|
|
105
|
-
entry.insert(
|
|
105
|
+
entry.insert(dunce::canonicalize(path)?);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gitronics-0.5.5 → gitronics-0.5.6}/example_project/assessment_specific/filler_model_3.metadata
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/data_cards/fine_mesh.tally
RENAMED
|
File without changes
|
{gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/data_cards/materials.mat
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gitronics-0.5.5 → gitronics-0.5.6}/example_project/reference_model/envelope_structure.metadata
RENAMED
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|