From e899d5da694c4c9de18ce53aec9a6a4eaf028cdd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:49:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/initialize_from_array/README.rst | 2 +- examples/initialize_from_array/run_from_array.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/initialize_from_array/README.rst b/examples/initialize_from_array/README.rst index a464aaec1..8323f20f0 100644 --- a/examples/initialize_from_array/README.rst +++ b/examples/initialize_from_array/README.rst @@ -11,7 +11,7 @@ or creating a custom distribution. This example includes a set of utilities for transforming the beam to the fixed-s coordinates of ImpactX. In this example, a custom beam is specified at fixed t, transformed to fixed s, and -then loaded in ImpactX. +then loaded in ImpactX. The custom beam is a ring in x-y, with radius r=2 mm, radial width :math:`\sigma_r = 5\ \mu`m; diff --git a/examples/initialize_from_array/run_from_array.py b/examples/initialize_from_array/run_from_array.py index 1cc4419d5..667a13d1d 100644 --- a/examples/initialize_from_array/run_from_array.py +++ b/examples/initialize_from_array/run_from_array.py @@ -7,10 +7,9 @@ # -*- coding: utf-8 -*- import amrex.space3d as amr -from impactx import ImpactX, elements -from impactx import Config, ImpactX, elements import numpy as np import transformation_utilities as pycoord +from impactx import Config, ImpactX, elements on_gpu = Config.have_gpu