-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from simonsobs/cleanup_legacy
Cleanup: legacy scripts, renaming, updated README, pep8
- Loading branch information
Showing
39 changed files
with
641 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
exclude = | ||
build/, | ||
legacy/, | ||
setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: test | ||
dependencies: | ||
python=3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: continuous-integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- releases/* | ||
pull_request: null | ||
|
||
env: | ||
CACHE_NUMBER: 0 # increase to reset cache manually | ||
CONDA_ENV: .github/environment.yml | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout SOOPERCOOL repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Lint | ||
uses: py-actions/flake8@v2 | ||
with: | ||
args: "--config .flake8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#### Installation of BB MASTER at `NERSC` | ||
#### Installation of SOOPERCOOL at `NERSC` | ||
|
||
In principle, a standard python environment with a working version of `NaMaster` will do the job. In a general environment (like `NERSC` or a different computing cluster), a safe and fast option is `micromamba`: | ||
|
||
|
@@ -18,11 +18,11 @@ In principle, a standard python environment with a working version of `NaMaster` | |
micromamba config set channel_priority strict | ||
``` | ||
|
||
- Install and load `bbmaster` environment (`python=3.6` proved to work with `conda`-like environments) | ||
- Install and load `soopercool` environment (`python=3.6` proved to work with `conda`-like environments) | ||
|
||
``` | ||
micromamba create -n bbmaster python=3.6 numpy scipy ipython matplotlib healpy astropy -y | ||
micromamba activate bbmaster | ||
micromamba create -n soopercool python=3.6 numpy scipy ipython matplotlib healpy astropy -y | ||
micromamba activate soopercool | ||
``` | ||
|
||
Then, install `GSL` from source (otherwise `NaMaster` won't recognize it): | ||
|
@@ -46,7 +46,7 @@ In principle, a standard python environment with a working version of `NaMaster` | |
micromamba install -c conda-forge namaster | ||
``` | ||
|
||
- Install `bbmaster` pipeline and its dependencies: | ||
- Install `soopercool` pipeline and its dependencies: | ||
|
||
``` | ||
git clone [email protected]:simonsobs/so_noise_models.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,12 @@ | ||
# Installation | ||
|
||
- [Install mbatch](https://github.com/simonsobs/mbatch#installing) | ||
|
||
- Install BBMASTER | ||
- Install SOOPERCOOL | ||
``` | ||
git clone [email protected]:simonsobs/BBMASTER.git | ||
cd BBMASTER | ||
git clone [email protected]:simonsobs/SOOPERCOOL.git | ||
cd SOOPERCOOL | ||
pip install -e . | ||
``` | ||
`-e` option will install local src with [development/editable mode](https://setuptools.pypa.io/en/latest/userguide/development_mode.html) | ||
|
||
# Run test | ||
- Prepare input files | ||
``` | ||
cd data | ||
python get_bandpower_edges.py | ||
python gen_PL_sims.py | ||
gzip -dk mask_binary.fits.gz | ||
cd .. | ||
``` | ||
|
||
- run `test_mbatch.yml` | ||
``` | ||
mbatch project_name test_mbatch.yml | ||
``` | ||
- Test SOOPERCOOL | ||
Go to the `pipeline` directory (`cd pipeline`), and run the current pipeline bash script (`./run_all.sh`). |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.