-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move FileIO support into extension (#1166)
Co-authored-by: Mark Kittisopikul <[email protected]>
- Loading branch information
1 parent
08d030f
commit 038f96c
Showing
4 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module OrderedCollectionsFileIOExt | ||
|
||
import HDF5: _infer_track_order | ||
@static if isdefined(Base, :get_extension) | ||
import OrderedCollections | ||
else | ||
import ..OrderedCollections | ||
end | ||
|
||
function _infer_track_order( | ||
track_order::Union{Nothing,Bool}, dict::OrderedCollections.OrderedDict | ||
) | ||
return something(track_order, true) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters