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
1b55aefd
Commit
1b55aefd
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Plain Diff
Merge branch 'documenter-1' into 'main'
Documenter 1 See merge request
!16
parents
ffe5e73c
1c2fe595
No related branches found
No related tags found
1 merge request
!16
Documenter 1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docs/Project.toml
+3
-0
3 additions, 0 deletions
docs/Project.toml
docs/make.jl
+5
-1
5 additions, 1 deletion
docs/make.jl
docs/src/api.md
+8
-0
8 additions, 0 deletions
docs/src/api.md
src/hardware.jl
+5
-0
5 additions, 0 deletions
src/hardware.jl
src/physics.jl
+2
-2
2 additions, 2 deletions
src/physics.jl
with
23 additions
and
3 deletions
docs/Project.toml
+
3
−
0
View file @
1b55aefd
...
...
@@ -4,3 +4,6 @@ FHist = "68837c9b-b678-4cd5-9925-8a54edc8f695"
HDF5
=
"f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
KM3NeTTestData
=
"3249b543-581e-4f22-b7da-6c2cdf549b24"
PGFPlotsX
=
"8314cec4-20b6-5062-9cdb-752b83310925"
[compat]
Documenter
=
"1"
This diff is collapsed.
Click to expand it.
docs/make.jl
+
5
−
1
View file @
1b55aefd
...
...
@@ -10,6 +10,7 @@ makedocs(;
collapselevel
=
4
,
warn_outdated
=
true
,
),
warnonly
=
[
:
missing_docs
],
pages
=
[
"Home"
=>
"index.md"
,
"Manual"
=>
Any
[
...
...
@@ -25,7 +26,10 @@ makedocs(;
],
"API"
=>
"api.md"
],
repo
=
"https://git.km3net.de/common/KM3io.jl/blob/{commit}{path}#L{line}"
,
repo
=
Documenter
.
Remotes
.
URL
(
"https://git.km3net.de/common/KM3io.jl/blob/{commit}{path}#L{line}"
,
"https://git.km3net.de/common/KM3io.jl"
),
)
deploydocs
(;
...
...
This diff is collapsed.
Click to expand it.
docs/src/api.md
+
8
−
0
View file @
1b55aefd
...
...
@@ -39,6 +39,7 @@ SummaryFrame
H5File
H5CompoundDataset
create_dataset
flush
```
## Hardware
...
...
@@ -47,8 +48,13 @@ create_dataset
PMT
DetectorModule
Detector
write(::AbstractString, ::Detector)
write(::IO, ::Detector)
Hydrophone
read(::AbstractString, ::Type{Hydrophone})
Tripod
read(::AbstractString, ::Type{Tripod})
write(::AbstractString, ::Vector{Tripod})
piezoenabled
hydrophoneenabled
center
...
...
@@ -63,8 +69,10 @@ center
```
@docs
Waveform
read(filename::AbstractString, T::Type{Waveform})
AcousticSignal
AcousticsTriggerParameter
read(filename::AbstractString, T::Type{AcousticsTriggerParameter})
```
## Calibration
...
...
This diff is collapsed.
Click to expand it.
src/hardware.jl
+
5
−
0
View file @
1b55aefd
...
...
@@ -411,6 +411,11 @@ function _extract_comments(lines::Vector{T}, prefix::T) where {T<:AbstractString
end
"""
Writes the detector definition to a file, according to the DETX format specification.
The `version` parameter can be a version number or `:same`, which is the default value
and writes the same version as the provided detector has.
"""
function
write
(
filename
::
AbstractString
,
d
::
Detector
;
version
=:
same
)
isfile
(
filename
)
&&
@warn
"File '
$(filename)
' already exists, overwriting."
open
(
filename
,
"w"
)
do
fobj
...
...
This diff is collapsed.
Click to expand it.
src/physics.jl
+
2
−
2
View file @
1b55aefd
...
...
@@ -102,6 +102,6 @@ K40Rates() = K40Rates(5200, [568.0, 49.10, 5.48, 0.48])
"""
Return the absorption length [m] in water at a KM3NeT site for a given wavelength [nm].
"""
function
absorption
s
length
(
λ
)
function
absorptionlength
(
λ
)
error
(
"Not implemented yet."
)
end
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
afb91760
·
1 year ago
mentioned in commit
afb91760
mentioned in commit afb91760dfe4cb13b455f274fea804c8131eecb4
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