pandashark
pandashark
## Summary Fixes #1520 Rewrites `array_axcpy` and `array_axc` in `blas_uninit.rs` to use raw pointers instead of slice references, fixing Miri-detected undefined behavior when decompositions run on `SMatrix` (stack-allocated via `ArrayStorage`)....
## What's happening When you create a sub-view from a `MatrixViewMut` (e.g. via `rows_range_mut`), Miri flags UB under Stacked Borrows. The culprit is `&mut self.data` in the `matrix_view_impl!` macro —...
## Description Two correctness bugs in `DataPortal` (src/zipline/data/data_portal.py): ### 1. `_first_trading_minute` set to `(None, None)` instead of `None` In `DataPortal.__init__()`, when `_first_trading_day` is None, `_first_trading_minute` is set to `(None, None)`...
## Summary Closes #322 - Replace `sessions.freq` with `tc.day` in `RollFinder.get_rolls` - Fix `compute_asset_lifetimes` for all-null assets (set start > end) - Apply mask to `NumericalExpression._compute` output - Preserve input...
## Summary Closes #321 - Fix `order.limit` truthiness check in `fill_price_worse_than_limit_price` - Fix `Positions` metric calling `ledger.positions` property as method - Fix `validate_order_params` style truthiness check - Fix `_can_order_asset` auto_close_date...
## Summary Closes #320 - Fix `_first_trading_minute` set to `(None, None)` tuple instead of `None` - Fix `_get_daily_spot_value` passing `"minute"` instead of `"daily"` to `get_adjusted_value` ## Test plan - [...
## Summary Closes #319 - Fix `DataFrame.tz_localize()` removal in pandas 2.0+ (benchmarks.py) - Guard `np.isnan()` for integer dtypes (hdf5_daily_bars.py) - Replace `DatetimeIndex.freq` with index-based lookups / `tc.day` (bcolz_minute_bars.py, continuous_future_reader.py) -...
## Description Six unrelated minor bugs across various subsystems: ### 1. `RollFinder.get_rolls` uses `sessions.freq` (roll_finder.py) Same `sessions.freq` returning `None` issue as in bcolz/continuous_future. Should use `tc.day`. ### 2. `compute_asset_lifetimes` wrong...
## Description Several locations in the simulation hot path use Python truthiness checks (`if x:`) instead of explicit None checks (`if x is not None:`). This can cause incorrect behavior...
## Description Several locations in zipline use pandas and numpy APIs that have been deprecated, removed, or changed behavior in pandas >= 2.0 and numpy >= 2.0: ### 1. `DataFrame.tz_localize()`...