Skip to content

Commit

Permalink
Merge pull request #104 from rasg-affiliates/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
steven-murray authored Jan 30, 2024
2 parents d0178cd + bdb23f8 commit d793b6f
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:


- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand Down
1 change: 1 addition & 0 deletions py21cmsense/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A package for calculate sensitivies of 21-cm interferometers."""

from importlib.metadata import PackageNotFoundError, version

try:
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for 21cmSense."""

import numpy as np
from astropy import units as un
from astropy.coordinates import EarthLocation, SkyCoord
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/antpos.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
a single array of shape (Nant, 3) with units of meters, corresponding to (x,y,z) positions
of antennae centred at zero.
"""

from __future__ import annotations

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/baseline_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using baselines within a certain length range). It also enables loading the filters
from string names, useful for YAML files.
"""

import abc
import attr
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/beam.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Simplistic beam definitions."""

from __future__ import annotations

import attr
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/config.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Some global configuration options for 21cmSense."""

PROGRESS = True # whether to display progress bars for some calculations.
1 change: 1 addition & 0 deletions py21cmsense/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Provides conversions between observing co-ordinates and cosmological co-ordinates.
"""

import numpy as np
from astropy import constants as cnst
from astropy import units as un
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Built-in data for py21cmsense."""

from pathlib import Path

PATH = Path(__file__).parent
1 change: 1 addition & 0 deletions py21cmsense/observation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A module defining interferometric observation objects."""

from __future__ import annotations

import attr
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This replaces the original usage of an aipy.AntennaArray with something much more
simple, and suited to the needs of this particular package.
"""

from __future__ import annotations

import attr
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
In the future, we may provide things like ``ImagingSensitivity`` or
``WaveletSensitivity`` for example.
"""

from __future__ import annotations

import attr
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
redshift and an array of wavenumbers, and returns Delta^2 as an astropy Quantity with
units mK^2.
"""

import abc
import numpy as np
import warnings
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module dealing with types and units throughout the package."""

from __future__ import annotations

import attr
Expand Down
1 change: 1 addition & 0 deletions py21cmsense/yaml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module defining new YAML tags for py21cmsense."""

import inspect
import numpy as np
import pickle
Expand Down
1 change: 1 addition & 0 deletions tests/test_uvw.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests of the phasing code for calculating UVWs."""

import pytest

import numpy as np
Expand Down

0 comments on commit d793b6f

Please sign in to comment.