Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion crow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
from .recipes.binned_grid import GridBinnedClusterRecipe
from .recipes.binned_parent import BinnedClusterRecipe

__version__ = "0.7.0"
__version__ = "1.0.0"
2 changes: 1 addition & 1 deletion crow/cluster_modules/shear_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def cluster_concentration(self):

@cluster_concentration.setter
def cluster_concentration(self, value):
if value < 0:
if value is not None and value < 0:
value = None
self.parameters["cluster_concentration"] = value

Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "desc-crow"
version = "0.5.2"
dynamic = ["version"]
description = "Cluster Reconstruction of Observables Workbench"
readme = "README.md"
license = "BSD-3-Clause"
Expand Down Expand Up @@ -47,3 +47,6 @@ target-version = ['py310']

[tool.isort]
profile = "black"

[tool.setuptools.dynamic]
version = {attr = "crow.__version__"}
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import pytest

# Ensure we can import from the main crow/ package
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))


def pytest_addoption(parser):
Expand Down
2 changes: 0 additions & 2 deletions tests/test_cluster_abundance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import pyccl
import pytest

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from crow import ClusterAbundance

_TEST_COSMO = pyccl.CosmologyVanillaLCDM()
Expand Down
2 changes: 0 additions & 2 deletions tests/test_cluster_integrators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import numpy.typing as npt
import pytest

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from crow.integrator.numcosmo_integrator import NumCosmoIntegrator
from crow.integrator.scipy_integrator import ScipyIntegrator

Expand Down
2 changes: 0 additions & 2 deletions tests/test_cluster_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import numpy as np
import pytest

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from crow import completeness_models, kernel, purity_models


Expand Down
2 changes: 0 additions & 2 deletions tests/test_cluster_mass_richness.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from hypothesis.strategies import floats
from scipy.integrate import quad

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from crow import mass_proxy
from crow.cluster_modules.mass_proxy.murata import MurataModel

Expand Down
2 changes: 0 additions & 2 deletions tests/test_cluster_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import numpy as np
import pytest

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from crow.cluster_modules.parameters import Parameters


Expand Down
2 changes: 0 additions & 2 deletions tests/test_cluster_shear_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import pytest
from scipy.stats import norm

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from crow import ClusterShearProfile

_TEST_COSMO = pyccl.CosmologyVanillaLCDM()
Expand Down
3 changes: 0 additions & 3 deletions tests/test_recipe_binned_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
from hypothesis.strategies import floats
from scipy.integrate import dblquad, simpson

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))


from crow import (
ClusterAbundance,
completeness_models,
Expand Down
3 changes: 0 additions & 3 deletions tests/test_recipe_binned_parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
from hypothesis import HealthCheck, given, settings
from hypothesis.strategies import floats

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))


from crow import ClusterAbundance, kernel, mass_proxy, purity_models
from crow.integrator.numcosmo_integrator import NumCosmoIntegrator
from crow.properties import ClusterProperty
Expand Down
2 changes: 0 additions & 2 deletions tests/test_recipe_binned_shear_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import pyccl
import pytest

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from crow import (
ClusterAbundance,
ClusterShearProfile,
Expand Down
Loading