Remove mikeio rename(inplace=...) warning path from DFSU point matching#665
Remove mikeio rename(inplace=...) warning path from DFSU point matching#665Copilot wants to merge 4 commits into
rename(inplace=...) warning path from DFSU point matching#665Conversation
rename(inplace=...) warning path from DFSU point matching
ryan-kipawa
left a comment
There was a problem hiding this comment.
Identify where the inplace call is being made before you make a fix. You must understand the problem before fixing it, even with TDD. One should also avoid unnecessary copies where possible, both for performance reasons as well as replication / internal consistency. Try again
Addressed in I traced the warning source to |
ryan-kipawa
left a comment
There was a problem hiding this comment.
I still think it's wrong. The code you removed did not have an inplace parameter, it was indeed how the warning advised resolving the issue.
Updated in |
ms.match()withDfsuModelResultcould emit repeated mikeioFutureWarningmessages about deprecatedinplacerename behavior, creating noisy notebook output despite successful matching. This change removes that warning path while preserving model-item naming in extracted point results.DFSU point extraction
DfsuModelResult._extract_pointto avoidmikeio.Dataset.rename(...)on the extracted dataset.Dataset/DataArraycopy rebuild).Regression coverage
tests/test_match.pythat treats the specific mikeio deprecation warning as an error and verifiesms.match([o1, o2], mr1)succeeds without triggering it.