Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ntessore committed Dec 13, 2023
1 parent 339e669 commit 64a858a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions heracles/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

# valid option keys
FIELD_TYPES = {
"positions": "heracles.maps:PositionMap",
"shears": "heracles.maps:ShearMap",
"visibility": "heracles.maps:VisibilityMap",
"weights": "heracles.maps:WeightMap",
"positions": "heracles.fields:Positions",
"shears": "heracles.fields:Shears",
"visibility": "heracles.fields:Visibility",
"weights": "heracles.fields:Weights",
}


Expand Down Expand Up @@ -364,7 +364,7 @@ def map_all_selections(
) -> Iterator:
"""Iteratively map the catalogues defined in config."""

from .maps import map_catalogs
from .fields import map_catalogs

# turn groups into a deduplicated sequence
if groups is None:
Expand Down Expand Up @@ -464,8 +464,8 @@ def alms(
"""

from .fields import transform_maps
from .io import AlmFits
from .maps import transform_maps

# load the config file, this contains alms setting and maps definition
logger.info("reading configuration from %s", files)
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ all = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
overrides."project.classifiers".inline_arrays = false

[project.scripts]
heracles = "heracles.cli:main"

0 comments on commit 64a858a

Please sign in to comment.