Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

a2

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a2 - npm Package Compare versions

Comparing version
0.10.9
to
0.10.10
+1
-1
PKG-INFO
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

[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"]