Closed pbelange closed 2 days ago
@ColasDroin
Hi,
If the collider_file_for_configuration.json
file was produced at the end of the first generation, it looks like a path problem indeed.
Are you sure you properly declared the dic_dependencies_per_gen
when submitting? E.g.
# Dependencies for the executable of each generation. Only needed if one uses HTC or Slurm.
dic_dependencies_per_gen = {
1: ["acc-models-lhc"],
2: ["path_collider_file_for_configuration_as_input", "path_distribution_folder_input"],
}
If yes, the path should be mutated to be absolute (granted that you submit from the root of the study as recommended in the doc, this might not work otherwise), such that your collider file should be accessible from the node (the json file itself is not copied on the node, that would be too heavy to do for every job).
Ah! Indeed, I think my problem is here: https://github.com/ColasDroin/study-DA/blob/902b25eedeef14445fd51e884fb1cb1acabdab16/study_da/submit/submit_scan.py#L259C13-L260C81
# Build l_dependencies and add to the kwargs
l_dependencies = dic_dependencies_per_gen.get(generation_number, [])
I had already seen that the generation number
is wrong when you dont submit from the root...
I'll see what I can do and/or simply submit from the root
Yes indeed! I didn't want to handle the dependencies when submitting from any folder as this might create a cascade of unexpected issues.
@ColasDroin what do you think of a solution like this? https://github.com/pbelange/study-DA/commit/1ad6d84b0441514028bd912104ce0566577f44a3
It allowed me to submit properly for the first time...
this is because I have a file structure like this:
-rw-rw-r--. 1 120232 phbelang 1610 Nov 27 16:25 01_config_tree.yaml
-rw-rw-r--. 1 120232 phbelang 1563 Nov 27 16:24 02_build_tree.py
-rw-rw-r--. 1 120232 phbelang 2182 Nov 27 16:24 03_submit_tree.py
drwxrwxr-x. 2 120232 phbelang 2048 Nov 12 16:08 configs
drwxrwxr-x. 2 120232 phbelang 2048 Nov 12 10:00 fillingschemes
drwxrwxr-x. 2 120232 phbelang 2048 Nov 27 16:21 scripts
drwxrwxr-x. 5 120232 phbelang 2048 Nov 27 20:27 trees
where the tree.yaml
is found under trees/DA_2025_octupole_scan/tree.yaml
. The reason for this file structure is that some additional scripts/dependencies are found in my script
folder, and I might want to generate several different trees which use the same additionnal script (such that if I need to modify something, I do it only in the main script)...
I will let you know if everything goes as planned, but for now the submission is running fine and the tracking is ongoing... just need to see if the second script will run after the DA tracking...
Ok nice, this seems like a non-invasive solution. Tell me how it goes, and you can do a PR if everything is fine. Cheers
Hi,
I keep running into this error when submitting to HTC:
I am trying to figure out where to look for to tackle this problem...:
collider_file_for_configuration.json
supposed to be copied on the HTCondor node?