-
Notifications
You must be signed in to change notification settings - Fork 18
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
Inconsistent/repeated string variables in chain header when using campaign runs #134
Comments
The items in the |
Sure -- I'll do some experimentation to try and figure out what aspects of my setup are causing this and will get back to you with a simpler example. |
Ok, so at least some of the issue seems to be related to having a bash variable in one of the
Also, to get a sense of what version of this the different modules were seeing, I added the line
to the Then, I set up a campaign file with that looks like this:
Looking at the chain outputs, the base chain's header section for CAMB has the linkes
And that When I do the run
with no When I do the run
The main thing that this is replicating is that if there isn't a bash variable in a This may not actually cause problems in and of itself, but it does seem to be a new behavior that I don't fully understand. More investigation is needed on my end, as this is replicating some of the out outputs, but not actually the problematic behavior I was seeing with my chain. Effectively what I was seeing (but haven't yet replicated in this simple setup) is that I have something like this in my chain header (mismatching the default section and what the modules seem to be seeing):
|
As an update, the behavior changes if I move the runs If I do this and then look at the chain header, the line To get more specific, my child.yml file looks like this:
The chain header does update the info in the default section, ala
but in the other sections it looks like this:
where |
In taking a closer look at some chains I ran a couple weeks ago, I'm seeing some odd behavior that may have to do with updates to how the campaign runs handle variables. This behavior has appeared on chain I ran around the end of June, but not ones using the same ini+yml file structure run at the end of May. (Credit to @xuod for catching this)
As a quick sketch of my job structure, I have a one yml file that has runs like
Then I have another file that includes the first one, and sets up chains with the same settings, but running on different (noisy) data vectors:
Relevant lines from the ini file used are:
Now, the odd behavior.
Looking at the header of the chain run with this setup, the line
## 2pt_file = data_vectors/wnoise_sim_baseline_32_lcdm_r01.fits
(with the noisy data) appears in theDEFAULT
section as expected, but the line## 2pt_file = data_vectors/sim_baseline_32_lcdm.fits
(with the original noiseless DV) appears at the end of every other module section (runtime, 2pt_like, consistency, sampler settings, everything). Also, theload_nz
module and2pt_like
module have lines like## nz_file = data_vectors/sim_baseline_32_lcdm.fits
rather than the%(2PT_FILE)s
cosmosis variables which remain in the headers of older chains (run in May).In contrast, in the
2pt_like
header, the## data_sets = %(2PT_DATA_SETS)s
line is still using the cosmosis variable. I'm not sure why these two variables (2PT_DATA_SETS
vs2PT_FILE
) would be treated differently, but I wonder if the variable update including an env variable has something to do with it. I'll tinker with this a bit with a test samper and will share any additional insights if I can find them, but ideas or suggestions are welcome!The text was updated successfully, but these errors were encountered: