From 40a47b12f54a056ef9b639aa58d6263e4cd74357 Mon Sep 17 00:00:00 2001 From: Joseph Glaser Date: Fri, 2 Aug 2024 14:02:00 +0000 Subject: [PATCH 1/9] Tryinging a small update to py 3.11. --- .github/workflows/test_CondaEnv.yml | 2 +- anaconda-env.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_CondaEnv.yml b/.github/workflows/test_CondaEnv.yml index 4200750..dc9bcac 100644 --- a/.github/workflows/test_CondaEnv.yml +++ b/.github/workflows/test_CondaEnv.yml @@ -14,7 +14,7 @@ jobs: max-parallel: 5 steps: - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: mamba-org/provision-with-micromamba@main with: environment-file: false diff --git a/anaconda-env.yml b/anaconda-env.yml index 3167bea..666f884 100644 --- a/anaconda-env.yml +++ b/anaconda-env.yml @@ -4,7 +4,7 @@ channels: - defaults - demorest dependencies: - - python=3.9 + - python=3.11 - pip - mkl - jupyter From 54c2107a816b270c148a249d92849ebabff81070 Mon Sep 17 00:00:00 2001 From: Joseph Glaser Date: Fri, 2 Aug 2024 14:08:23 +0000 Subject: [PATCH 2/9] Removing defaults channel to see if that fixes recent error. --- anaconda-env.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/anaconda-env.yml b/anaconda-env.yml index 666f884..5d7f6df 100644 --- a/anaconda-env.yml +++ b/anaconda-env.yml @@ -1,7 +1,6 @@ name: IPTA_Env channels: - conda-forge - - defaults - demorest dependencies: - python=3.11 From 9a55e0e3bdb6c7f401dd0822a563b129dd3adeb4 Mon Sep 17 00:00:00 2001 From: Joseph Glaser Date: Fri, 2 Aug 2024 14:27:56 +0000 Subject: [PATCH 3/9] Trying out Python 3.10. --- .github/workflows/test_CondaEnv.yml | 4 ++++ anaconda-env.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_CondaEnv.yml b/.github/workflows/test_CondaEnv.yml index dc9bcac..3c26723 100644 --- a/.github/workflows/test_CondaEnv.yml +++ b/.github/workflows/test_CondaEnv.yml @@ -19,5 +19,9 @@ jobs: with: environment-file: false - name: Install Conda Environment + - if: matrix.os == 'macos-latest' + run: | + micromamba env create --platform osx-64 --file anaconda-env.yml + - if: matrix.os == 'ubuntu-latest' run: | micromamba env create --file anaconda-env.yml diff --git a/anaconda-env.yml b/anaconda-env.yml index 5d7f6df..5f88352 100644 --- a/anaconda-env.yml +++ b/anaconda-env.yml @@ -3,7 +3,7 @@ channels: - conda-forge - demorest dependencies: - - python=3.11 + - python=3.10 - pip - mkl - jupyter From 4605a60ddf0d34ed9919f01a7f861e2bda13b610 Mon Sep 17 00:00:00 2001 From: Joseph Glaser Date: Fri, 2 Aug 2024 14:32:59 +0000 Subject: [PATCH 4/9] Seperating the runs for MacOs and Ubuntu to add in platform support. --- .github/workflows/test_CondaEnv.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_CondaEnv.yml b/.github/workflows/test_CondaEnv.yml index 3c26723..4b53851 100644 --- a/.github/workflows/test_CondaEnv.yml +++ b/.github/workflows/test_CondaEnv.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - '**-env.yml' + - '.github/workflows/**' jobs: build-conda-env: @@ -18,10 +19,11 @@ jobs: uses: mamba-org/provision-with-micromamba@main with: environment-file: false - - name: Install Conda Environment + - name: Install Conda Environment on MacOS - if: matrix.os == 'macos-latest' run: | micromamba env create --platform osx-64 --file anaconda-env.yml + - name: Install Conda Environment on Ubuntu - if: matrix.os == 'ubuntu-latest' run: | micromamba env create --file anaconda-env.yml From 290245ee76680c3d9b842cf6e478cc1b54f4581f Mon Sep 17 00:00:00 2001 From: Joseph Glaser Date: Fri, 2 Aug 2024 14:51:24 +0000 Subject: [PATCH 5/9] Fix syntax. --- .github/workflows/test_CondaEnv.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_CondaEnv.yml b/.github/workflows/test_CondaEnv.yml index 4b53851..cd17611 100644 --- a/.github/workflows/test_CondaEnv.yml +++ b/.github/workflows/test_CondaEnv.yml @@ -19,11 +19,10 @@ jobs: uses: mamba-org/provision-with-micromamba@main with: environment-file: false - - name: Install Conda Environment on MacOS - - if: matrix.os == 'macos-latest' + - name: Install Conda Environment + if: matrix.os == 'macos-latest' run: | micromamba env create --platform osx-64 --file anaconda-env.yml - - name: Install Conda Environment on Ubuntu - - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' run: | micromamba env create --file anaconda-env.yml From 7ba387e286981eb95072a88f2b6c85376a6814f3 Mon Sep 17 00:00:00 2001 From: Joseph Glaser Date: Fri, 2 Aug 2024 14:52:19 +0000 Subject: [PATCH 6/9] And the two ifs need to be in seperate steps. --- .github/workflows/test_CondaEnv.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_CondaEnv.yml b/.github/workflows/test_CondaEnv.yml index cd17611..8abcf83 100644 --- a/.github/workflows/test_CondaEnv.yml +++ b/.github/workflows/test_CondaEnv.yml @@ -19,10 +19,11 @@ jobs: uses: mamba-org/provision-with-micromamba@main with: environment-file: false - - name: Install Conda Environment + - name: Install Conda Environment on MacOS if: matrix.os == 'macos-latest' run: | micromamba env create --platform osx-64 --file anaconda-env.yml + - name: Install Conda Environment on Ubuntu if: matrix.os == 'ubuntu-latest' run: | micromamba env create --file anaconda-env.yml From af9e91e77f699a66331e7a8ffdf39d00065c8ddf Mon Sep 17 00:00:00 2001 From: Golam Date: Thu, 28 Nov 2024 09:02:55 +0100 Subject: [PATCH 7/9] Update README.md Rxplicit macos instructions --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index be4468d..55f89c9 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ To install this environment in your flavor of Anaconda, proceed through the foll 3. Using `mamba`, install the environment: `mamba env create -f anaconda-env.yml` 4. Activate the environment: `mamba activate IPTA_Env` +## MacOS installation +Same as above; but try with: + 1. `micromamba env create --platform osx-64 --file anaconda-env.yml` + ### Important Note Regarding the Included OpenMPI For Linux 64, Open MPI is built with CUDA awareness but this support is disabled by default. To enable it, please set the environment variable `OMPI_MCA_opal_cuda_support=true` before launching your MPI processes. Equivalently, you can set the MCA parameter in the command line: `mpiexec --mca opal_cuda_support 1 ...` From 908964bf0df7ac2597c233a81561d851cd2c8f8d Mon Sep 17 00:00:00 2001 From: Golam Shaifullah Date: Tue, 3 Dec 2024 20:51:43 +0100 Subject: [PATCH 8/9] Updated environment to enterprise_warp and bilby --- anaconda-env.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/anaconda-env.yml b/anaconda-env.yml index 5f88352..05efc2e 100644 --- a/anaconda-env.yml +++ b/anaconda-env.yml @@ -1,9 +1,10 @@ name: IPTA_Env channels: - conda-forge + - defaults - demorest dependencies: - - python=3.10 + - python=3.9 - pip - mkl - jupyter @@ -71,5 +72,11 @@ dependencies: - acor>=1.1.1 - pypulse>=0.1.1 - gitpython + - bilby - pip: + - git+https://github.com/PolyChord/PolyChordLite@master - git+https://github.com/pennucci/PulsePortraiture.git@py3 + - git+https://github.com/bvgoncharov/enterprise_warp + - git+https://github.com/nanograv/pint_pal@main + - git+https://github.com/nanograv/enterprise@dev + - git+https://github.com/nanograv/enterprise_extensions@dcbusyweek From 68962a3b473a1a93b1a294b3c28a85a4fc42a203 Mon Sep 17 00:00:00 2001 From: Golam Date: Tue, 3 Dec 2024 21:03:55 +0100 Subject: [PATCH 9/9] Update to address deprecation micromamba setup --- .github/workflows/test_CondaEnv.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_CondaEnv.yml b/.github/workflows/test_CondaEnv.yml index 8abcf83..f6fd531 100644 --- a/.github/workflows/test_CondaEnv.yml +++ b/.github/workflows/test_CondaEnv.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python 3.11 - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@v1 with: environment-file: false - name: Install Conda Environment on MacOS