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
64259011
Commit
64259011
authored
Mar 15, 2021
by
Javier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bugs
automatic truncation t0 + unfinished runs
parent
88a5a34f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/juobs_obs.jl
src/juobs_obs.jl
+1
-0
src/juobs_reader.jl
src/juobs_reader.jl
+2
-2
No files found.
src/juobs_obs.jl
View file @
64259011
...
@@ -322,6 +322,7 @@ function comp_t0(Y::Vector{YData}, plat::Vector{Int64}; L::Int64, pl::Bool=false
...
@@ -322,6 +322,7 @@ function comp_t0(Y::Vector{YData}, plat::Vector{Int64}; L::Int64, pl::Bool=false
error
(
"Automatic truncation failed. R = "
,
replica
[
k
],
"
\n
Try using truncate_data!"
)
error
(
"Automatic truncation failed. R = "
,
replica
[
k
],
"
\n
Try using truncate_data!"
)
end
end
end
end
replica
=
size
.
(
Ysl
,
1
)
end
end
Ysl
=
isnothing
(
rw
)
?
Ysl
:
apply_rw
(
Ysl
,
rw
)
Ysl
=
isnothing
(
rw
)
?
Ysl
:
apply_rw
(
Ysl
,
rw
)
...
...
src/juobs_reader.jl
View file @
64259011
...
@@ -121,8 +121,8 @@ function read_mesons(path::String, g1::Union{String, Nothing}=nothing, g2::Union
...
@@ -121,8 +121,8 @@ function read_mesons(path::String, g1::Union{String, Nothing}=nothing, g2::Union
fsize
=
filesize
(
path
)
fsize
=
filesize
(
path
)
datsize
=
4
+
sum
(
c
.
dsize
for
c
in
c_header
)
*
tvals
*
nnoise
#data
size / ncnfg
datsize
=
4
+
sum
(
getfield
.
(
c_header
,
:
dsize
))
*
tvals
*
nnoise
#data_
size / ncnfg
ncfg
=
Int32
((
fsize
-
g_header
.
hsize
-
sum
(
c
.
hsize
for
c
in
c_header
))
/
datsize
)
ncfg
=
div
(
fsize
-
g_header
.
hsize
-
sum
(
getfield
.
(
c_header
,
:
hsize
)),
datsize
)
#(total size - header_size) / data_size
corr_match
=
findall
(
x
->
(
x
.
type1
==
t1
||
isnothing
(
t1
))
&&
(
x
.
type2
==
t2
||
isnothing
(
t2
)),
c_header
)
corr_match
=
findall
(
x
->
(
x
.
type1
==
t1
||
isnothing
(
t1
))
&&
(
x
.
type2
==
t2
||
isnothing
(
t2
)),
c_header
)
...
...
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