Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 1, 2024
1 parent 23ee328 commit 157a4c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions abacusnbody/hod/zcv/ic_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ def compress_asdf(asdf_fn, table, header):
blosc_block_size=3 * 1024**2,
nthreads=4,
)
with asdf.AsdfFile(data_tree) as af, open(
asdf_fn, 'wb'
) as fp: # where data_tree is the ASDF dict tree structure
with (
asdf.AsdfFile(data_tree) as af,
open(asdf_fn, 'wb') as fp,
): # where data_tree is the ASDF dict tree structure
af.write_to(
fp, all_array_compression='blsc', compression_kwargs=compression_kwargs
)
Expand Down

0 comments on commit 157a4c0

Please sign in to comment.