Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Include Python 3.11 compatibility, unpeg all dependencies and fix breaking changes from updated packages or downgrade packages.
Steps
1.Unpin requirements.txt
2. Use poetry to setup supported python version range into pyproject.toml
4. Add requirements.txt dependencies with poetry and resolve Python version compatibility issues
5. xarray, scipy, and numpy versions adjusted to meet python version requirements
6. Run tests by creating virtualenv with 3.8, 3.9, 3.10, 3.11
7. For failing tests, either fix code or revert package version
Final explicitly defined requirements
8. Remove poetry created files (pyproject.toml, poetry.lock)
Fixes for compatibility
Int64Index
deprecated DEPR: Remove Int64Index, UInt64Index, Float64Index and Index._is_backward_compat_public_numeric_index pandas-dev/pandas#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.