Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
83fd387f
Commit
83fd387f
authored
13 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #2669: Removed DAL tests as DAL is not used anymore
parent
8963a026
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitattributes
+0
-1
0 additions, 1 deletion
.gitattributes
RTCP/Storage/test/CMakeLists.txt
+0
-1
0 additions, 1 deletion
RTCP/Storage/test/CMakeLists.txt
RTCP/Storage/test/tDAL_HDF5.cc
+0
-132
0 additions, 132 deletions
RTCP/Storage/test/tDAL_HDF5.cc
with
0 additions
and
134 deletions
.gitattributes
+
0
−
1
View file @
83fd387f
...
...
@@ -2455,7 +2455,6 @@ RTCP/Storage/src/MeasurementSetFormat.cc -text
RTCP/Storage/src/OutputThread.cc -text
RTCP/Storage/src/gnuplotMS.sh -text
RTCP/Storage/src/plotMS.cc -text
RTCP/Storage/test/tDAL_HDF5.cc -text
RTCP/Storage/test/tMeasurementSetFormat.parset-j2000 -text
RTCP/Storage/test/tMeasurementSetFormat.parset-sun -text
SAS/OTB/OTB/conf/ParmDBConfiguration.xml -text
...
...
This diff is collapsed.
Click to expand it.
RTCP/Storage/test/CMakeLists.txt
+
0
−
1
View file @
83fd387f
...
...
@@ -3,5 +3,4 @@
include
(
LofarCTest
)
lofar_add_test
(
tMeasurementSetFormat tMeasurementSetFormat.cc
)
lofar_add_test
(
tDAL_HDF5 tDAL_HDF5.cc
)
#lofar_add_test(tAH_TestStorage tAH_TestStorage.cc)
This diff is collapsed.
Click to expand it.
RTCP/Storage/test/tDAL_HDF5.cc
deleted
100644 → 0
+
0
−
132
View file @
8963a026
//# tDAL_HDF5: Test DAL HDF5 routines
//#
//# Copyright (C) 2001
//# ASTRON (Netherlands Foundation for Research in Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
//#
//# This program is free software; you can redistribute it and/or modify
//# it under the terms of the GNU General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or
//# (at your option) any later version.
//#
//# This program is distributed in the hope that it will be useful,
//# but WITHOUT ANY WARRANTY; without even the implied warranty of
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//# GNU General Public License for more details.
//#
//# You should have received a copy of the GNU General Public License
//# along with this program; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//#
//# $Id: $
#include
<lofar_config.h>
#include
<Storage/MSWriterDAL.h>
#ifdef USE_DAL
#define FILENAME "test.h5"
#define SAMPLES 3056
#define CHANNELS 256
#define SUBBANDS 10
#define BLOCKS 10
#include
<data_hl/BF_RootGroup.h>
#include
<data_hl/BF_StokesDataset.h>
#include
<data_common/CommonAttributes.h>
#include
<iostream>
#include
<data_common/CommonAttributes.h>
#include
<boost/format.hpp>
#include
<boost/multi_array.hpp>
using
namespace
DAL
;
using
namespace
std
;
using
namespace
boost
;
using
boost
::
format
;
int
main
()
{
const
char
*
const
filename
=
FILENAME
;
const
unsigned
nrSamples
=
SAMPLES
;
const
unsigned
nrChannels
=
SUBBANDS
*
CHANNELS
;
{
CommonAttributes
ca
;
Filename
fn
(
"12345"
,
"test"
,
Filename
::
bf
,
Filename
::
h5
,
""
);
ca
.
setFilename
(
fn
);
ca
.
setClockFrequency
(
200.0
);
ca
.
setClockFrequencyUnit
(
"MHz"
);
ca
.
setObserver
(
""
);
ca
.
setObservationStart
(
""
,
""
,
""
);
ca
.
setObservationEnd
(
""
,
""
,
""
);
ca
.
setAntennaSet
(
"LBA_INNER"
);
ca
.
setFilterSelection
(
"LBA_30_90"
);
ca
.
setTarget
(
""
);
ca
.
setSystemVersion
(
""
);
ca
.
setPipelineVersion
(
""
);
ca
.
setNotes
(
""
);
ca
.
setTelescope
(
"LOFAR"
);
cout
<<
"Creating file "
<<
endl
;
BF_RootGroup
rootGroup
(
fn
);
cout
<<
"Creating stokes group 0"
<<
endl
;
rootGroup
.
openStokesDataset
(
0
,
0
,
0
,
nrSamples
*
BLOCKS
,
SUBBANDS
,
CHANNELS
,
Stokes
::
I
);
{
/* don't -- this crashes */
/*
BF_StokesDataset stokesDataset = rootGroup.getSubArrayPointing( 0 ).getStokesDataset( 0, 0 );
*/
std
::
string
name
=
DAL
::
BF_SubArrayPointing
::
getName
(
0
)
+
"/"
+
DAL
::
BF_BeamGroup
::
getName
(
0
)
+
"/"
+
DAL
::
BF_StokesDataset
::
getName
(
0
);
BF_StokesDataset
stokesDataset
(
rootGroup
.
locationID
(),
name
);
cout
<<
"Creating sample multiarray of "
<<
(
SAMPLES
|
2
)
<<
" x "
<<
SUBBANDS
<<
" x "
<<
CHANNELS
<<
endl
;
typedef
multi_array
<
float
,
3
>
array
;
array
samples
(
extents
[
SAMPLES
|
2
][
SUBBANDS
][
CHANNELS
]);
for
(
unsigned
t
=
0
;
t
<
SAMPLES
;
t
++
)
for
(
unsigned
s
=
0
;
s
<
SUBBANDS
;
s
++
)
for
(
unsigned
c
=
0
;
c
<
CHANNELS
;
c
++
)
samples
[
t
][
s
][
c
]
=
t
*
s
*
c
;
for
(
unsigned
seqnr
=
0
;
seqnr
<
1
;
seqnr
++
)
{
vector
<
int
>
start
(
2
),
block
(
2
);
start
[
0
]
=
seqnr
*
nrSamples
;
start
[
1
]
=
0
;
block
[
0
]
=
nrSamples
;
block
[
1
]
=
nrChannels
;
cout
<<
"Writing data block "
<<
seqnr
<<
endl
;
stokesDataset
.
writeData
(
samples
.
origin
(),
start
,
block
);
}
cout
<<
"Finalise StokesDataset"
<<
endl
;
}
cout
<<
"Finalise RootGroup"
<<
endl
;
}
cout
<<
"Done"
<<
endl
;
return
0
;
}
#else
int
main
()
{
return
0
;
}
#endif
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