Commit c807f0f
Fix compatibility with ismrmrd-python 1.14.2+ (#13)
The function `ismrmrd.get_dtype_from_data_type()` was removed from the
public API in ismrmrd-python PR #82 (merged Sep 2025) when wildcard
imports were replaced with explicit imports to clean up the public API.
This change replaces all calls to `ismrmrd.get_dtype_from_data_type(image.data_type)`
with `image.data.dtype`, which is functionally equivalent since the Image
class already calls `get_dtype_from_data_type()` internally during
initialization to create the data array with the correct dtype.
Changes:
- connection.py: Fixed 3 occurrences in read_image()
- invertcontrast.py: Fixed logging statement
- analyzeflow.py: Fixed logging statement
- custom/filter.py: Fixed logging statement
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent dbb3e58 commit c807f0f
4 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
0 commit comments