Skip to content

Commit 27b9adb

Browse files
committed
minor updates
1 parent dbaab42 commit 27b9adb

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build & Publish GitHub Container Registry (GHCR) Images
2-
name: GHCR Images
2+
name: Build and Test Images
33

44
on:
55
push:
@@ -159,11 +159,7 @@ jobs:
159159
IS_LATEST: ${{ matrix.latest }}
160160
PUSHED: ${{ github.event_name != 'pull_request' }}
161161
run: |
162-
PLATFORM_HINT=""
163-
if [ "$SUPPORTED_PLATFORMS" = "linux/amd64" ]; then
164-
# amd64-only image (e.g., Alma). Suggest --platform for Apple Silicon users.
165-
PLATFORM_HINT="--platform=linux/amd64"
166-
fi
162+
PLATFORM_HINT="--platform=linux/amd64"
167163
{
168164
echo "## Docker Image"
169165
if [ "$PUSHED" = "true" ]; then

api/system_template.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,17 @@ def write_templates(system, variations):
182182
pg.write('import math\n\n')
183183
pg.write('# These are example of methods to build a mother and daughter volume.\n\n')
184184
pg.write(f'def build_{system}(configuration):\n')
185-
pg.write(' build_mother_volume(configuration)\n')
185+
pg.write(' build_flux_box(configuration)\n')
186186
pg.write(' build_target(configuration)\n\n')
187-
pg.write('def build_mother_volume(configuration):\n')
188-
pg.write(' gvolume = GVolume(\'absorber\')\n')
189-
pg.write(' gvolume.description = \'scintillator box\'\n')
187+
pg.write('def build_flux_box(configuration):\n')
188+
pg.write(' gvolume = GVolume(\'flux_box\')\n')
189+
pg.write(' gvolume.description = \'carbon fiber box\'\n')
190190
pg.write(' gvolume.make_box(40.0, 40.0, 2.0)\n')
191191
pg.write(' gvolume.material = \'carbonFiber\'\n')
192192
pg.write(' gvolume.color = \'3399FF\'\n')
193+
pg.write(' gvolume.style = 1\n')
193194
pg.write(' gvolume.digitization = \'flux\'\n')
194195
pg.write(' gvolume.set_position(0, 0, 100)\n')
195-
pg.write(' gvolume.style = 1\n')
196196
pg.write(' gvolume.set_identifier(\'box\', 2) # identifier for this box\n')
197197
pg.write(' gvolume.publish(configuration)\n\n')
198198

0 commit comments

Comments
 (0)