fhs / NPZ.jl

A Julia package that provides support for reading and writing Numpy .npy and .npz files
Other
117 stars 16 forks source link

File io #50

Closed Pan-Maciek closed 2 years ago

Pan-Maciek commented 2 years ago

Added a convenience function used by FileIO. This makes it easy to work with multiple filetypes at the same time.

Before:

using FileIO
using NPZ

model = load("model-001.ply")
keypoints = npzread("keypoints.npz", ["001"])
camera = npzread("camera.npy")

after

using FileIO

model = load("model-001.ply")
keypoints = load("keypoints.npz", ["001"])
camera = load("camera.npy")

If it can be merged I have changes ready to integrate it with FileIO on their side. FileIO fork MR

johnnychen94 commented 2 years ago

@fhs maybe bump a new version for this? That way I can also merge https://github.com/JuliaIO/FileIO.jl/pull/358 and make a new FileIO release.

fhs commented 2 years ago

@johnnychen94 Created https://github.com/JuliaRegistries/General/pull/59603

CarloLucibello commented 2 years ago

@Pan-Maciek could you also add some tests for this?

johnnychen94 commented 2 years ago

That way I can also merge https://github.com/JuliaIO/FileIO.jl/pull/358 and make a new FileIO release.

FileIO v1.14.0: https://github.com/JuliaRegistries/General/pull/59636