igmhub / cup1d

Cosmology using P1D - small scale clustering of the Lyman alpha forest
2 stars 1 forks source link

Pip installable (and more) #59

Closed jchavesmontero closed 7 months ago

jchavesmontero commented 7 months ago

@lauracabayol A lot of updates, and making the package pip installable (and sync with the new installation of LaCE). The only thing I need you to check is whether the following works.

  1. Install the package according to the new instructions (in the new environment specified).
  2. Create an environment variable $LYA_DATA_PATH, it points to the directory where the data will be stored.
  3. Run the script: mpiexec -n 4 python sam_sim.py --emulator_label Cabayol23 --drop_sim --use_polyfit --mock_sim_label mpg_0 --igm_sim_label mpg_0 --cosmo_sim_label mpg_0 --n_igm 0 --cov_label Chabanier2019 --emu_cov_factor 0 --verbose --parallel

We are testing plenty of things: new installation of cup1d, compatibility with the new version of LaCE, parallelizing with MPI, the right version of mpi4py and mpich, and maybe more things. It would be great if it works at the first try, but I expect some problems (it always take me a while to install the right version of mpi4py). I can wait until Thursday and we can try together.

jchavesmontero commented 7 months ago

@lauracabayol Could you make this work? I am not in a hurry, I was just curious whether you found problems or you did not have time to try

jchavesmontero commented 7 months ago

@lauracabayol did you have time to check it out?