Skip to content

Commit

Permalink
Add attributes function to GroupMetadata module
Browse files Browse the repository at this point in the history
  • Loading branch information
zoj613 committed Jul 2, 2024
1 parent 5f3a045 commit 1df4c77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/metadata.ml
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,6 @@ module GroupMetadata = struct

let update_attributes t attrs =
{t with attributes = attrs}

let attributes t = t.attributes
end
4 changes: 4 additions & 0 deletions lib/metadata.mli
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,8 @@ module GroupMetadata : sig

val show : t -> string
(** [show t] pretty-prints the contents of the group metadata type t. *)

val attributes : t -> Yojson.Safe.t
(** [attributes t] Returns a Yojson type containing user attributes assigned
to the zarr group represented by [t]. *)
end

0 comments on commit 1df4c77

Please sign in to comment.