Skip to content
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

Support CAR and HEALPix concurrently #83

Merged
merged 24 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4e5cad6
feat: preparation for supporting both car and healpix
zonca Sep 23, 2022
0a18765
feat: support both healpix and car in MapSim and write_outputs
zonca Sep 23, 2022
0de0252
fix: propagate car resolution
zonca Sep 23, 2022
aac4dd2
test: unit test for both car and healpix outputs
zonca Sep 23, 2022
b3d7a5e
test: writing car and healpix to disk
zonca Sep 23, 2022
79cfffc
feat: support a different modeling nside
zonca Sep 23, 2022
a7d1297
test: do not use so_pysm_models and update map for new PySM smoothing
zonca Sep 24, 2022
7493197
feat: make lmax configurable
zonca Sep 24, 2022
ac433d2
add all metadata to output files
zonca Sep 24, 2022
5e189f4
support modeling_nside and lmax_over_modeling_nside in config file
zonca Oct 10, 2022
f06a431
remove old test map
zonca Oct 10, 2022
10bb8af
new test map
zonca Oct 10, 2022
782ddba
test: increase logging
zonca Oct 10, 2022
1ceb3ef
increase NSIDE of default test
zonca Oct 10, 2022
fbeca02
test: at nside 256
zonca Oct 10, 2022
00237a3
TOREVERT - ci: switch to pysm3 dev for testing
zonca Oct 10, 2022
1942d31
switch from Poetry to Flit
zonca Oct 12, 2022
cc4df77
link to docs
zonca Oct 12, 2022
07c9fb4
pkg: do not specify requirement on Python there
zonca Oct 12, 2022
b726ac7
pkg: restore dependency on so_pysm_models
zonca Oct 12, 2022
c8ec443
test Python 3.8+
zonca Oct 12, 2022
fb6a23a
ci: use strings for package version
zonca Oct 12, 2022
3510595
doc: strange testing error is fixed
zonca Oct 13, 2022
0c5c0e4
ci: remove legacy resolver
zonca Oct 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Install dependencies
shell: bash -l {0} # needed by conda
run: |
pip install --use-deprecated=legacy-resolver ".[test]"
pip install ".[test]"
- name: Test with pytest
shell: bash -l {0} # needed by conda
env:
Expand Down
20 changes: 2 additions & 18 deletions mapsims/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst

# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from .channel_utils import Channel, parse_channels
from .noise import SONoiseSimulator
from .cmb import SOPrecomputedCMB, SOStandalonePrecomputedCMB
from .runner import MapSim, from_config, get_default_so_resolution

# ----------------------------------------------------------------------------

# Enforce Python version check during package import.
# This is the same check as the one at the top of setup.py
import sys

__minimum_python_version__ = "3.6"
__minimum_python_version__ = "3.8"


class UnsupportedPythonError(Exception):
Expand All @@ -28,13 +21,4 @@ class UnsupportedPythonError(Exception):
"mapsims does not support Python < {}".format(__minimum_python_version__)
)

try:
from importlib.metadata import version, PackageNotFoundError
except ImportError:
from importlib_metadata import version, PackageNotFoundError


try:
__version__ = version(__name__)
except PackageNotFoundError:
__version__ = "unknown"
__version__ = "2.6.0"
4 changes: 2 additions & 2 deletions mapsims/data/example_config_v0.2.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

nside = 16
nside = 256
channels = "tube:ST0"
unit = "uK_CMB"
mapsims_version = "2.0.dev"
Expand All @@ -11,7 +11,7 @@ num = 0
[ pysm_components ]

# Remove this if no default PySM components are needed
pysm_components_string = "SO_d0"
pysm_components_string = "d0"
pysm_output_reference_frame = "C"

[ pysm_components.cmb ]
Expand Down
Loading