Skip to content

Commit

Permalink
Speed up op a bit (#435)
Browse files Browse the repository at this point in the history
* Speed up op
  • Loading branch information
mtfishman authored Jun 23, 2020
1 parent 49ddeba commit c3490f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physics/sitetype.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function op(name::AbstractString,
Ntags = max(1,length(tags(s))) # use max here in case of no tags
# because there may still be a
# generic case such as name=="Id"
stypes = ntuple(n->SiteType(tags(s)[n]),Ntags)
stypes = [SiteType(tags(s)[n]) for n in 1:Ntags]
opn = OpName(SmallString(name))

#
Expand Down

0 comments on commit c3490f6

Please sign in to comment.