Commit c42e8b0a authored by Antonello Pellecchia's avatar Antonello Pellecchia
Browse files

Create one configuration file per each GBT

parent 938bdd89
Pipeline #3828238 passed with stages
in 3 minutes and 47 seconds
......@@ -11,9 +11,10 @@ def create_configuration(input_filenames, output_directory):
fed = df.iloc[0]["fed"]
slot = df.iloc[0]["slot"]
oh = df.iloc[0]["oh"]
gbt = df.iloc[0]["gbt"]
output_filename = "{}/fed{}-slot{}/config-oh{}-gbt.cfg".format(
output_directory, fed, slot, oh
output_filename = "{}/fed{}-slot{}/gbt/config-oh{}-gbt{}.cfg".format(
output_directory, fed, slot, oh, gbt
)
os.makedirs(os.path.dirname(output_filename), exist_ok=True)
......@@ -27,5 +28,5 @@ def create_configuration(input_filenames, output_directory):
df["config-name"] = "PHASE_GBT" + df["gbt"].astype(str) + "_ELINK" + df["elink"].astype(str)
# Create one file per OptoHybrid
groups = df.groupby(["fed", "slot", "oh"])
groups = df.groupby(["fed", "slot", "oh", "gbt"])
groups.apply(write_configuration)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment