Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ADerrors.jl
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
Alberto Ramos
ADerrors.jl
Commits
f731cd62
Commit
f731cd62
authored
4 years ago
by
Alberto Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected bug in read_uwreal
Thanks to P. Fritzsch
parent
0cf6c775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
src/ADerrorsCF.jl
src/ADerrorsCF.jl
+2
-2
src/ADerrorsIO.jl
src/ADerrorsIO.jl
+9
-4
No files found.
src/ADerrorsCF.jl
View file @
f731cd62
...
...
@@ -893,7 +893,7 @@ function uwreal(data::Vector{Float64},
idc
=
Vector
{
Int64
}(
undef
,
length
(
data
))
iof
=
0
for
i
in
1
:
length
(
v
)
v
[
i
]
=
str
*
"r"
*
string
(
i
-
1
)
v
[
i
]
=
str
*
"
_
r"
*
string
(
i
-
1
)
for
k
in
1
:
iv
[
i
]
idc
[
k
+
iof
]
=
k
end
...
...
@@ -936,7 +936,7 @@ function uwreal(data::Vector{Float64},
idc
=
Vector
{
Int64
}(
undef
,
length
(
data
))
iof
=
0
for
i
in
1
:
length
(
v
)
v
[
i
]
=
str
*
"r"
*
string
(
i
-
1
)
v
[
i
]
=
str
*
"
_
r"
*
string
(
i
-
1
)
for
k
in
1
:
iv
[
i
]
idc
[
k
+
iof
]
=
k
end
...
...
This diff is collapsed.
Click to expand it.
src/ADerrorsIO.jl
View file @
f731cd62
...
...
@@ -365,12 +365,17 @@ function read_bdio(fb, ws::wspace, mapids::Dict{Int64, Int64})
BDIO
.
BDIO_read
(
fb
,
ifoo
)
str
=
get_name_from_id
(
convert
(
Int64
,
ids
[
i
]),
ws
)
for
j
in
1
:
nrep
[
i
]
v
[
j
]
=
str
*
"_r"
*
string
(
j
)
for
k
in
is
:
ie
idc
[
k
]
=
convert
(
Int32
,
k
-
is
+
1
)
v
[
j
]
=
str
*
"_r"
*
string
(
j
-
1
)
end
iof
=
0
for
j
in
1
:
nrep
[
i
]
for
k
in
1
:
ivrep
[
is
+
j
-
1
]
idc
[
k
+
iof
]
=
convert
(
Int32
,
k
)
end
iof
=
iof
+
ivrep
[
is
+
j
-
1
]
end
add_repnames
(
convert
(
Int64
,
ids_obs
[
i
]),
ws
,
v
,
idc
)
add_repnames
(
convert
(
Int64
,
ids_obs
[
i
]),
ws
,
v
,
convert
(
Vector
{
Int64
},
idc
)
)
is
=
ie
+
1
end
else
...
...
This diff is collapsed.
Click to expand it.
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