Closed mikejhuang closed 10 months ago
Include Python 3.11 compatibility, unpeg all dependencies and fix breaking changes from updated packages or downgrade packages.
1.Unpin requirements.txt
Int64Index
pd.Series.str.replace
regex=True
pd.Series.reindex
MultiIndex
check_less_precise
pd.testing.assert_series_equal
r_tol
a_tol
VisualBehaviorProjectCache.get_ophys_session_table( index_column="ophys_experiment_id").index
'object'
int64
Include Python 3.11 compatibility, unpeg all dependencies and fix breaking changes from updated packages or downgrade packages.
Steps
1.Unpin requirements.txt
Fixes for compatibility
Int64Index
deprecated https://github.com/pandas-dev/pandas/issues/42717pd.Series.str.replace
must specifyregex=True
if regex is used.pd.Series.reindex
with aMultiIndex
can no longer take in single integer Index as an inputcheck_less_precise
is a deprecated parameter inpd.testing.assert_series_equal
. This is replaced withr_tol
anda_tol
Reverting versions instead of fixing
VisualBehaviorProjectCache.get_ophys_session_table( index_column="ophys_experiment_id").index
is type'object'
, expectedint64
All the values in this index are int64 so I'm not sure why it was loaded as an object type.