a2
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: a2 | ||
| Version: 0.10.9 | ||
| Version: 0.10.10 | ||
| Summary: Package for predicting information about the weather from social media data as application 2 for maelstrom project | ||
@@ -5,0 +5,0 @@ Author: Kristian Ehlert |
+1
-1
| [tool.poetry] | ||
| name = "a2" | ||
| version = "0.10.9" | ||
| version = "0.10.10" | ||
| description = "Package for predicting information about the weather from social media data as application 2 for maelstrom project" | ||
@@ -5,0 +5,0 @@ authors = ["Kristian Ehlert <kristian.ehlert@4-cast.de>"] |
@@ -58,8 +58,12 @@ import logging | ||
| """ | ||
| if dims is None: | ||
| dims = ds[field].coords.dims | ||
| if is_same_type_data_array(ds, field): | ||
| return xarray.DataArray(ds[field].values == "nan", dims=dims) | ||
| else: | ||
| return xarray.DataArray(pd.isna(ds[field].values), dims=dims) | ||
| if _using_xarray(): | ||
| if dims is None: | ||
| dims = ds[field].coords.dims | ||
| if is_same_type_data_array(ds, field): | ||
| is_na = xarray.DataArray(ds[field].values == "nan", dims=dims) | ||
| else: | ||
| is_na = xarray.DataArray(pd.isna(ds[field].values), dims=dims) | ||
| elif _using_pandas(): | ||
| is_na = ds[field].isna() | ||
| return is_na | ||
@@ -66,0 +70,0 @@ |
@@ -16,3 +16,3 @@ import dataclasses | ||
| if not use_deep500: | ||
| use_deep500 = os.environ.get("USE_DEEP500") == "True" | ||
| use_deep500 = a2.utils.utils.parse_bool(os.environ.get("USE_DEEP500")) | ||
| print(f"{use_deep500=}") | ||
@@ -19,0 +19,0 @@ if use_deep500: |
@@ -271,1 +271,5 @@ import ast | ||
| return xarray, xarray_dataset_type | ||
| def parse_bool(bool_str): | ||
| return bool_str in ["true", True, "True"] |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
749883
0.03%8986
0.07%