Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
ec4a680e
Commit
ec4a680e
authored
16 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ry laeuft
parent
73cf0053
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rssm.cpp
+37
-0
37 additions, 0 deletions
src/rssm.cpp
with
37 additions
and
0 deletions
src/rssm.cpp
+
37
−
0
View file @
ec4a680e
...
@@ -141,6 +141,7 @@ void RssmRawFile::RdRawYam( FILE *F_in )
...
@@ -141,6 +141,7 @@ void RssmRawFile::RdRawYam( FILE *F_in )
val
=
y
.
getscalar
(
"x-value"
);
val
=
y
.
getscalar
(
"x-value"
);
if
(
mystd
::
any2dbl
(
val
,
&
num
)
)
if
(
mystd
::
any2dbl
(
val
,
&
num
)
)
throw
string
(
"E-Hist: invalid x-value "
)
+
val
;
throw
string
(
"E-Hist: invalid x-value "
)
+
val
;
printf
(
"E: %f
\n
"
,
num
);
for
(
int
i
=
0
;
i
<
4
;
++
i
)
for
(
int
i
=
0
;
i
<
4
;
++
i
)
rawdata
[
i
].
push_back
(
num
);
rawdata
[
i
].
push_back
(
num
);
for
(
int
i
=
0
;
i
<
4
;
++
i
){
for
(
int
i
=
0
;
i
<
4
;
++
i
){
...
@@ -159,6 +160,42 @@ void RssmRawFile::RdRawYam( FILE *F_in )
...
@@ -159,6 +160,42 @@ void RssmRawFile::RdRawYam( FILE *F_in )
for
(
int
ii
=
0
;
ii
<
numvec
.
size
();
++
ii
)
for
(
int
ii
=
0
;
ii
<
numvec
.
size
();
++
ii
)
rawdata
[
i
].
push_back
(
numvec
[
ii
]
);
rawdata
[
i
].
push_back
(
numvec
[
ii
]
);
}
}
y
.
checktype
(
YAML_SEQUENCE_END_EVENT
,
"E-Hist entry"
);
}
y
.
done
();
y
.
checkvalue
(
"ChopperHistograms"
);
y
.
checktype
(
YAML_SEQUENCE_START_EVENT
,
"C-Hist: no seq
\n
"
);
while
(
true
){
y
.
next
();
if
(
y
.
event
.
type
==
YAML_SEQUENCE_END_EVENT
)
break
;
if
(
y
.
event
.
type
!=
YAML_SEQUENCE_START_EVENT
)
throw
string
(
"C-Hist: seq: no seq"
);
y
.
done
();
val
=
y
.
getscalar
(
"x-value"
);
if
(
mystd
::
any2dbl
(
val
,
&
num
)
)
throw
string
(
"C-Hist: invalid x-value "
)
+
val
;
printf
(
"p: %f
\n
"
,
num
);
for
(
int
i
=
4
;
i
<
6
;
++
i
)
rawdata
[
i
].
push_back
(
num
);
for
(
int
i
=
4
;
i
<
6
;
++
i
){
val
=
y
.
getscalar
(
"cnts line"
);
if
(
mystd
::
str2vec
(
val
,
&
numvec
)
)
throw
string
(
"cnts line extraction failed"
);
if
(
numvec
.
size
()
!=
ndet
)
throw
string
(
"hist: ndet incompatibility"
);
for
(
int
ii
=
0
;
ii
<
numvec
.
size
();
++
ii
)
rawdata
[
i
].
push_back
(
numvec
[
ii
]
);
}
for
(
int
i
=
4
;
i
<
6
;
++
i
){
val
=
y
.
getscalar
(
"time line"
);
if
(
mystd
::
str2vec
(
val
,
&
numvec
)
)
throw
string
(
"time line extraction failed"
);
for
(
int
ii
=
0
;
ii
<
numvec
.
size
();
++
ii
)
rawdata
[
i
].
push_back
(
numvec
[
ii
]
);
}
y
.
checktype
(
YAML_SEQUENCE_END_EVENT
,
"C-Hist entry"
);
}
}
y
.
done
();
y
.
done
();
...
...
This diff is collapsed.
Click to expand it.
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