From 1b6050c77719b3e0a7473dfa8191880a7969583e Mon Sep 17 00:00:00 2001
From: Chao Peng <cpeng@anl.gov>
Date: Wed, 4 Aug 2021 17:13:22 +0000
Subject: [PATCH] Change the CI job for EcalEndcapN placement

---
 .gitlab-ci.yml                                         | 10 ----------
 ...{ce_ecal_placement.py => plot_ce_ecal_placement.py} |  2 +-
 2 files changed, 1 insertion(+), 11 deletions(-)
 rename scripts/{ce_ecal_placement.py => plot_ce_ecal_placement.py} (99%)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5239cf7f..1814e959 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -106,16 +106,6 @@ include:
   - local: 'views/view15.yml'
   - local: 'views/view20.yml'
 
-ce_ecal_placement:
-  stage: test
-  needs:
-    - common:detector
-  script:
-    - python scripts/ce_ecal_placement.py --save ce_ecal_crystal_glass.xml
-    - mv ce_ecal_placement.png doc/ce_ecal_placement.png
-    - if ! diff ce_ecal_crystal_glass.xml compact/ce_ecal_crystal_glass.xml ; then echo "ce_ecal_crystal_glaxs.xml not reproducible" && false ; fi
-    - echo "EndcapN layout at https://eicweb.phy.anl.gov/EIC/detectors/athena/-/jobs/${CI_JOB_ID}/artifacts/raw/doc/ce_ecal_placement.png"
-
 dump_geometry:
   stage: test
   needs:
diff --git a/scripts/ce_ecal_placement.py b/scripts/plot_ce_ecal_placement.py
similarity index 99%
rename from scripts/ce_ecal_placement.py
rename to scripts/plot_ce_ecal_placement.py
index e5c24eaf..0f77647e 100644
--- a/scripts/ce_ecal_placement.py
+++ b/scripts/plot_ce_ecal_placement.py
@@ -93,7 +93,7 @@ def compact_constants(path, names):
 
 if __name__ == '__main__':
     parser = argparse.ArgumentParser()
-    parser.add_argument('-s', '--save', default='compact/ce_ecal_crystal_glass.xml',
+    parser.add_argument('-s', '--save', default='ce_ecal_placement_test.xml',
             help='path to save compact file.')
     parser.add_argument('-c', '--compact', default='',
             help='compact file to get contant to plot')
-- 
GitLab