Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3io.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
common
KM3io.jl
Commits
c18609f8
Commit
c18609f8
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Plain Diff
Merge branch 'version-fix' into 'main'
Make version readout future proof See merge request
!21
parents
78251281
490daeeb
No related branches found
No related tags found
1 merge request
!21
Make version readout future proof
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Project.toml
+1
-0
1 addition, 0 deletions
Project.toml
src/KM3io.jl
+8
-1
8 additions, 1 deletion
src/KM3io.jl
with
9 additions
and
1 deletion
Project.toml
+
1
−
0
View file @
c18609f8
...
...
@@ -14,6 +14,7 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Sockets
=
"6462fe0b-24de-5631-8697-dd941f90decc"
StaticArrays
=
"90137ffa-7385-5640-81b9-e52037218182"
Statistics
=
"10745b16-79ce-11e8-11f9-7d13ad32a3b2"
TOML
=
"fa267f1f-6049-4f14-aa54-33bafae1ed76"
UUIDs
=
"cf7118a7-6976-5b1a-9a39-7adc72f591a4"
UnROOT
=
"3cd96dde-e98d-4713-81e9-a4a1b0235ce9"
...
...
This diff is collapsed.
Click to expand it.
src/KM3io.jl
+
8
−
1
View file @
c18609f8
...
...
@@ -7,9 +7,16 @@ using Printf: @printf
using
Dates
:
DateTime
,
datetime2unix
,
unix2datetime
using
Sockets
using
UUIDs
using
TOML
import
Pkg
const
version
=
VersionNumber
(
Pkg
.
TOML
.
parsefile
(
joinpath
(
pkgdir
(
KM3io
),
"Project.toml"
))[
"version"
])
const
version
=
let
if
VERSION
<
v
"1.9"
VersionNumber
(
TOML
.
parsefile
(
joinpath
(
pkgdir
(
KM3io
),
"Project.toml"
))[
"version"
])
else
pkgversion
(
KM3io
)
end
end
using
DocStringExtensions
using
StaticArrays
:
FieldVector
,
@SArray
,
SVector
...
...
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
ad880c1a
·
1 year ago
mentioned in commit
ad880c1a
mentioned in commit ad880c1aa7924b3a26c6aa555d92cb858c298e87
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment