Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to import os in example and test gaudi opt files #139

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/starterkit/k4MarlinWrapperCLIC/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ during [Simulation](#simulation).
```bash
cd CLICPerformance/clicConfig

sed -i '1s/^/import os\n/' clicReconstruction.py
sed -i 's;read.Files = \[".*"\];read.Files = \["ttbar.slcio"\];' clicReconstruction.py
sed -i 's;EvtMax = 10,;EvtMax = 3,;' clicReconstruction.py
sed -i 's;"MaxRecordNumber": ["10"],;"MaxRecordNumber": ["3"],;' clicReconstruction.py
Expand Down
3 changes: 3 additions & 0 deletions k4MarlinWrapper/examples/clicRec_e4h_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

import os

from Gaudi.Configuration import *

from Configurables import LcioEvent, MarlinProcessorWrapper
Expand Down
2 changes: 2 additions & 0 deletions test/gaudi_opts/clicReconstruction_mt.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os

from Gaudi.Configuration import *

# Parallel stuff
Expand Down
1 change: 1 addition & 0 deletions test/scripts/clicRec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fi
echo "Modifying clicReconstruction.py file..."
# Replace SLCIO file path
# sed -i 's|/run/simulation/with/ctest/to/create/a/file.slcio|testSimulation.slcio|g' clicReconstruction.py
sed -i '1s/^/import os\n/' clicReconstruction.py
sed -i 's|/run/simulation/with/ctest/to/create/a/file.slcio|$TEST_DIR/inputFiles/testSimulation.slcio|g' clicReconstruction.py
# Uncomment selected optional processors
sed -i 's;EvtMax = 10,;EvtMax = 3,;' clicReconstruction.py
Expand Down
Loading