FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
libdiffpy/src/tests/python_helpers.cpp at develop · cfarrow/libdiffpy · GitHub
cfarrow
libdiffpy
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
libdiffpy
/
src
/
tests
/
python_helpers.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (34 loc) · 1.1 KB
Breadcrumbs
libdiffpy
/
src
/
tests
/
python_helpers.cpp
Copy path
File metadata and controls
38 lines (34 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
****************************************************************************
*
* diffpy.lib by DANSE Diffraction group
* Simon J. L. Billinge
* (c) 2010 Trustees of the Michigan State University.
* All rights reserved.
*
* File coded by: Pavol Juhas
*
* See AUTHORS.txt for a list of people who contributed.
* See LICENSE.txt for license information.
*
******************************************************************************
*
* shared helpers for loading diffpy structure objects.
*
****************************************************************************
*/
#
include
<
diffpy/PythonInterface.hpp
>
#
include
"
python_helpers.hpp
"
#
include
"
test_helpers.hpp
"
using
namespace
std
;
using
namespace
boost
;
python::object
loadTestStructure
(
const
string& tailname)
{
using
namespace
diffpy
;
initializePython
();
python::object Structure =
importFromPyModule
(
"
diffpy.Structure
"
,
"
Structure
"
);
python::object stru =
Structure
();
string fp =
prepend_testdata_dir
(tailname);
stru.
attr
(
"
read
"
)(fp);
return
stru;
}
//
End of file
Back
|
FazBrowse Home
|
New Git URL