Open zatkins2 opened 3 years ago
Hi Mat, I made a couple changes that should help. The "qid_idx" is now sourced from an additional column in all_arrays_dr5.csv; please see that PR. Also, up to 2 qids can be passed to handle seeds for simulating the correlation of 2 arrays (no more than 2!). Will comment for now and merge once you're able to review the corresponding soapack PR.
@zatkins2 let's merge this if you think it is up-to-date (confirm and I'll merge)
Hey Mat, thanks for reminding me about this. I think it's slightly out of date with the corresponding PR in soapack, but I'm going to take a look today and probably have only minor modifications to make, will ping you!
This branch adds a single method to the actsims.util _SeedTracker class, for tiled noise sims, as opposed to single-patch noise sims. Besides setting a seed for a tile based on newly relevant data like qid and tile index, it makes two main changes to the class:
self.TILED_NOISE = 6
as an instance variable. This ensures all seeds generated byget_tiled_noise_seed
do not overlap with previous noise sims.'dr5':3
toself.dmdict
. This allows users to pass aDR5
datamodel instance to any of the class methods. The value, 3, is unique, which I think makes sense. However, it does conflict with line 22 of soapack.interfaces: the dictnoise_seed_indices
, which assignsdr5
to the value 0 -- would argue for this to be changed to 3 as well (if it is referenced?)