Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
juobs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Javier Ugarrio
juobs
Commits
30cb3eb7
Commit
30cb3eb7
authored
Dec 19, 2025
by
Antonino D'Anna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed and ading J307 to database
parent
88a7a23a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
constants/juobs_const.jl
constants/juobs_const.jl
+2
-1
src/juobs_fit.jl
src/juobs_fit.jl
+11
-7
src/juobs_reader.jl
src/juobs_reader.jl
+1
-1
No files found.
constants/juobs_const.jl
View file @
30cb3eb7
...
...
@@ -16,6 +16,7 @@ const ens_db = Dict(
"N300"
=>
[
48
,
128
,
3.70
,
1
,
"1.2"
,
[
1540
]],
"N302"
=>
[
48
,
128
,
3.70
,
1
,
"1.2"
,
[
2201
]],
"J303"
=>
[
64
,
192
,
3.70
,
2
,
"2.0"
,
[
1073
]],
"J307"
=>
[
64
,
192
,
3.70
,
1
,
"2.0"
,[
586
,
536
]],
"E300"
=>
[
96
,
192
,
3.70
,
1
,
[
"1.4"
],
[
1139
]],
"J500"
=>
[
64
,
192
,
3.85
,
2
,
[
"1.2"
,
"1.4"
,
"2.0"
],
[
789
,
655
,
431
]],
"J501"
=>
[
64
,
192
,
3.85
,
1
,
[
"1.2"
,
"1.4"
,
"2.0"
],
[
1635
,
1142
,
1150
]],
...
...
src/juobs_fit.jl
View file @
30cb3eb7
...
...
@@ -282,7 +282,7 @@ It returns a `NamedTuple` with names:
- `:chiexp`: chisquare expected
- `:pval`: pvalue
"""
function
fit_routine
(
models
::
AbstractArray
{
Function
},
function
fit_routine
s
(
models
::
AbstractArray
{
Function
},
xdata
::
AbstractArray
{
<:
AbstractArray
},
ydata
::
AbstractArray
{
<:
AbstractArray
{
ADerrors
.
uwreal
}},
npar
::
Int64
;
...
...
@@ -326,16 +326,20 @@ function fit_routine(models::AbstractArray{Function},
CC
=
length
(
C
)
==
0
?
C
:
make_matrix
(
C
);
function
Model
(
x
,
p
)
res
=
zeros
(
Nmodel
)
res
=
Vector
{
Any
}(
undef
,
Nmodel
)
res
[
1
]
=
models
[
1
](
x
[
1
:
ndata
[
1
]],
p
)
for
i
in
2
:
Nmodel
rd
=
(
ndata
[
i
-
1
]
+
1
)
:
ndata
[
i
]
rp
=
(
npar
[
i
-
1
]
+
1
)
:
npar
[
i
]
is
=
1
ie
=
0
for
i
in
1
:
Nmodel
ie
+=
ndata
[
i
]
rd
=
is
:
ie
res
[
i
]
=
models
[
i
](
x
[
rd
],
p
)
is
=
ie
+
1
end
return
res
return
vcat
(
res
...
)
end
fit
=
fit_routine
(
Model
,
X
,
Y
,
npar
,
guess
=
guess
,
W
=
WW
,
C
=
CC
,
corr
=
corr
,
logfile
=
nothing
,
wpm
=
wpm
)
fit
=
juobs
.
fit_routine
(
Model
,
X
,
Y
,
npar
,
guess
=
guess
,
W
=
WW
,
C
=
CC
,
corr
=
corr
,
logfile
=
nothing
,
wpm
=
wpm
)
if
!
isnothing
(
logfile
)
uwerr
.
(
fit
.
par
)
...
...
src/juobs_reader.jl
View file @
30cb3eb7
...
...
@@ -508,7 +508,7 @@ function read_mesons_correction(path::String, gamma::Vector{Tuple{String,String}
return
res
end
function
ead_mesons_correction
(
path
::
Vector
{
String
},
gamma
::
Vector
{
Tuple
{
String
,
String
}};
id
::
Union
{
String
,
Nothing
}
=
nothing
,
legacy
::
Bool
=
false
,
function
r
ead_mesons_correction
(
path
::
Vector
{
String
},
gamma
::
Vector
{
Tuple
{
String
,
String
}};
id
::
Union
{
String
,
Nothing
}
=
nothing
,
legacy
::
Bool
=
false
,
nnoise_trunc
::
Union
{
Int64
,
Nothing
}
=
nothing
)
res
=
[
read_mesons_correction
(
p
,
gamma
,
id
=
id
,
legacy
=
legacy
,
nnoise_trunc
=
nnoise_trunc
)
for
p
in
path
]
nrep
=
length
(
res
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment