Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92996405
bayesRemoveEvid.pl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 25, 11:26
Size
412 B
Mime Type
text/x-perl
Expires
Wed, Nov 27, 11:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22553057
Attached To
R1448 Lenstool-HPC
bayesRemoveEvid.pl
View Options
#!/usr/bin/perl
#
Remove
the
Evidence
line
and
Evidence
column
in
old
bayes
.
dat
#
files
.
#
if
(
@
ARGV
>
0
)
{
$
file
=
$
ARGV
[
0
];
}
else
{
$
file
=
"bayes.dat"
;
}
open
(
IN
,
$
file
)
||
die
"$file not found."
;
while
(
$
line
=
<
IN
>
)
{
if
(
$
line
=~
"#"
)
{
print
$
line
if
(
$
line
ne
"#Evidence\n"
);
}
else
{
@fld
=
split
" "
,
$
line
;
printf
"%s\n"
,
join
(
" "
,
@
{
[
@fld
[
0
..
1
],
@fld
[
3
..
$
#fld
]
]
}
);
}
}
Event Timeline
Log In to Comment