Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rwa"
version = "0.9.2"
version = "0.9.3"
description = "HDF5-based serialization library for Python datatypes"
authors = ["François Laurent <francois.laurent@pasteur.fr>"]
license = "Apache 2.0"
Expand All @@ -9,10 +9,10 @@ readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
six = "^1.16.0"
numpy = "^1.24.3"
scipy = "^1.10.1"
pandas = "^2.0.2"
h5py = "^3.8.0"
numpy = ">=0"
scipy = ">=0"
pandas = ">=0"
h5py = "^3"


[tool.poetry.group.dev.dependencies]
Expand Down
7 changes: 4 additions & 3 deletions rwa/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .generic import *
import warnings
import sys
import numpy as np

class Python35Warning(DeprecationWarning):
pass
Expand Down Expand Up @@ -163,7 +164,7 @@ class pandas_Int64Index(object):
"""
__slot__ = ()
pass
peek_int64index = peek_numerical_index(pandas.Index, lambda a: a.astype(np.int64))
peek_int64index = peek_numerical_index(pandas.Index, lambda a: np.asarray(a).astype(np.int64))

try:
# UInt64Index is missing in 0.17.1
Expand Down Expand Up @@ -191,7 +192,7 @@ class pandas_Float64Index(object):
"""
__slot__ = ()
pass
peek_float64index = peek_numerical_index(pandas.Index, lambda a: a.astype(np.float64))
peek_float64index = peek_numerical_index(pandas.Index, lambda a: np.asarray(a).astype(np.float64))

if True:
poke_rangeindex = poke([('start','_start'), ('stop','_stop'), ('step','_step'), 'name'])
Expand Down Expand Up @@ -224,7 +225,7 @@ class pandas_RangeIndex(object):
pass
def peek_rangeindex(*args, **kwargs):
attrs = peek_as_dict(*args, **kwargs)
return pandas.Int64Index( \
return pandas.Index( \
range( \
attrs.pop('_start', None), \
attrs.pop('_stop', None), \
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name = 'rwa-python',
version = '0.9.2',
version = '0.9.3',
description = 'HDF5-based serialization library for Python datatypes',
long_description = long_description,
url = 'https://github.com/DecBayComp/RWA-python',
Expand Down