Skip to content

Commit

Permalink
Added schema_version
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Jun 20, 2024
1 parent a39612a commit 974852c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions podio/genComponents.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Automatically generated by generate.jl from edm4hep.yaml (schema version 1)
schema_version = v"1"

"""
HitLevelData
# Fields
Expand Down
5 changes: 5 additions & 0 deletions podio/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ end

#---Components-------------------------------------------------------------------------------------
io = open(joinpath(@__DIR__, "genComponents.jl"), "w")

schema_version = data["schema_version"]
println(io, "# Automatically generated by generate.jl from edm4hep.yaml (schema version $schema_version)")
println(io, "schema_version = v\"$schema_version\"\n")

components = data["components"]
exports = []
for (key,value) in pairs(components)
Expand Down

0 comments on commit 974852c

Please sign in to comment.