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
9d5d761f
Commit
9d5d761f
authored
Nov 22, 2022
by
Ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
16251b83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/juobs_tools.jl
src/juobs_tools.jl
+10
-2
No files found.
src/juobs_tools.jl
View file @
9d5d761f
...
@@ -158,7 +158,11 @@ function corr_obs(cdata::CData; real::Bool=true, rw::Union{Array{Float64, 2}, No
...
@@ -158,7 +158,11 @@ function corr_obs(cdata::CData; real::Bool=true, rw::Union{Array{Float64, 2}, No
if
isnothing
(
rw
)
if
isnothing
(
rw
)
obs
=
[
uwreal
(
data
[
:
,
x0
],
cdata
.
id
)
for
x0
=
1
:
nt
]
obs
=
[
uwreal
(
data
[
:
,
x0
],
cdata
.
id
)
for
x0
=
1
:
nt
]
else
else
flag_strange
?
data_r
,
W
=
apply_rw
(
data
,
rw
,
id
=
cdata
.
id
)
:
data_r
,
W
=
apply_rw
(
data
,
rw
)
if
flag_strange
==
true
data_r
,
W
=
apply_rw
(
data
,
rw
,
id
=
cdata
.
id
)
else
data_r
,
W
=
apply_rw
(
data
,
rw
)
end
ow
=
[
uwreal
(
data_r
[
:
,
x0
],
cdata
.
id
)
for
x0
=
1
:
nt
]
ow
=
[
uwreal
(
data_r
[
:
,
x0
],
cdata
.
id
)
for
x0
=
1
:
nt
]
W_obs
=
uwreal
(
W
,
cdata
.
id
)
W_obs
=
uwreal
(
W
,
cdata
.
id
)
obs
=
[
ow
[
x0
]
/
W_obs
for
x0
=
1
:
nt
]
obs
=
[
ow
[
x0
]
/
W_obs
for
x0
=
1
:
nt
]
...
@@ -193,7 +197,11 @@ function corr_obs(cdata::Array{CData, 1}; real::Bool=true, rw::Union{Array{Array
...
@@ -193,7 +197,11 @@ function corr_obs(cdata::Array{CData, 1}; real::Bool=true, rw::Union{Array{Array
[
tmp
=
cat
(
tmp
,
data
[
k
],
dims
=
1
)
for
k
=
2
:
nr
]
[
tmp
=
cat
(
tmp
,
data
[
k
],
dims
=
1
)
for
k
=
2
:
nr
]
obs
=
[
uwreal
(
tmp
[
:
,
x0
],
id
[
1
],
replica
)
for
x0
=
1
:
nt
]
obs
=
[
uwreal
(
tmp
[
:
,
x0
],
id
[
1
],
replica
)
for
x0
=
1
:
nt
]
else
else
flag_strange
?
data_r
,
W
=
apply_rw
(
data
,
rw
,
id
=
cdata
.
id
)
:
data_r
,
W
=
apply_rw
(
data
,
rw
)
if
flag_strange
==
true
data_r
,
W
=
apply_rw
(
data
,
rw
,
id
=
cdata
.
id
)
else
data_r
,
W
=
apply_rw
(
data
,
rw
)
end
tmp
=
data_r
[
1
]
tmp
=
data_r
[
1
]
tmp_W
=
W
[
1
]
tmp_W
=
W
[
1
]
[
tmp
=
cat
(
tmp
,
data_r
[
k
],
dims
=
1
)
for
k
=
2
:
nr
]
[
tmp
=
cat
(
tmp
,
data_r
[
k
],
dims
=
1
)
for
k
=
2
:
nr
]
...
...
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