Skip to content

Commit b396dcb

Browse files
authored
Merge pull request #191 from AstroAI-Lab/main
update joss branch
2 parents 4831fe9 + 9a8c5ae commit b396dcb

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
repos:
33
- repo: https://github.com/kynan/nbstripout
4-
rev: 0.8.2
4+
rev: 0.9.0
55
hooks:
66
- id: nbstripout
77
files: ".ipynb"
@@ -14,7 +14,7 @@ repos:
1414
- id: check-merge-conflict # Check for files that contain merge conflict strings.
1515
- id: check-added-large-files # Prevent large files from being added to the repository.
1616
- repo: https://github.com/psf/black-pre-commit-mirror
17-
rev: 25.12.0
17+
rev: 26.1.0
1818
hooks:
1919
- id: black
2020
- repo: https://github.com/pycqa/isort

rubix/core/data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def prepare_input(config: Union[dict, str]) -> RubixData:
415415
>>> rubixdata.stars.coords
416416
"""
417417

418-
logger_config = config["logger"] if "logger" in config else None # type:ignore
418+
logger_config = config["logger"] if "logger" in config else None # type: ignore
419419
logger = get_logger(logger_config)
420420
file_path = config["output_path"]
421421
file_path = os.path.join(file_path, "rubix_galaxy.h5")
@@ -464,13 +464,13 @@ def prepare_input(config: Union[dict, str]) -> RubixData:
464464
if rubixdata.stars.coords is not None:
465465
indices = np.random.choice(
466466
np.arange(len(rubixdata.stars.coords)),
467-
size=size, # type:ignore
467+
size=size, # type: ignore
468468
replace=False,
469-
) # type:ignore
469+
) # type: ignore
470470
elif rubixdata.gas.coords is not None:
471471
indices = np.random.choice(
472472
np.arange(len(rubixdata.gas.coords)),
473-
size=size, # type:ignore
473+
size=size, # type: ignore
474474
replace=False,
475475
)
476476
else:

rubix/logger.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,13 @@ def get_logger(config=None):
4545

4646
if first_time:
4747

48-
logger.info(
49-
r"""
48+
logger.info(r"""
5049
___ __ _____ _____ __
5150
/ _ \/ / / / _ )/ _/ |/_/
5251
/ , _/ /_/ / _ |/ /_> <
5352
/_/|_|\____/____/___/_/|_|
5453
55-
"""
56-
)
54+
""")
5755
logger.info(f"Rubix version: {version.__version__}")
5856
logger.info(f"JAX version: {jax.__version__}")
5957
logger.info(f"Running on {jax.devices()} devices")

tests/test_illustris_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ def test_append_subhalo_data(api_instance, tmp_path):
385385
dataset = f["SubhaloData"][key] # type: ignore
386386
if isinstance(value, np.ndarray):
387387
np.testing.assert_array_equal(
388-
dataset[:], value # type:ignore
389-
), f"Data '{key}' does not match the expected value." # type:ignore
388+
dataset[:], value # type: ignore
389+
), f"Data '{key}' does not match the expected value." # type: ignore
390390
else:
391391
assert (
392-
dataset[()] == value # type:ignore
392+
dataset[()] == value # type: ignore
393393
), f"Data '{key}' does not match the expected value."
394394

395395

0 commit comments

Comments
 (0)