Skip to content

Commit

Permalink
Fixed log level and removed sonarcloud stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
goord committed May 26, 2024
1 parent f986f19 commit 1e27b45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
4 changes: 3 additions & 1 deletion dales2zarr/convert_int8.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import xarray as xr
import yaml
import zarr
import logging
from dales2zarr.zarr_cast import multi_cast_to_int8


Expand Down Expand Up @@ -35,11 +36,12 @@ def main(arg_list=None):
Returns:
None
"""
logging.basicConfig(level=logging.INFO)
# Parse command-line arguments
args = parse_args(arg_list)

# Read the input dataset from file
input_ds = xr.open_dataset(args.input)
input_ds = xr.open_dataset(args.input, chunks='auto')

if args.config is None:
# Default input configurationz
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ Repository = "https://github.com/NLeSC/dales2zarr"
Issues = "https://github.com/NLeSC/dales2zarr/issues"
Changelog = "https://github.com/NLeSC/dales2zarr/CHANGELOG.md"

[project.scripts]
dales2zarr = "dales2zarr.convert_int8:main"

[tool.pytest.ini_options]
testpaths = ["tests"]

Expand Down
12 changes: 0 additions & 12 deletions sonar-project.properties

This file was deleted.

0 comments on commit 1e27b45

Please sign in to comment.