Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
core
Commits
b015c723
Verified
Commit
b015c723
authored
May 31, 2021
by
Tobias WEBER
Browse files
added version comments
parent
354bf62d
Changes
6
Hide whitespace changes
Inline
Side-by-side
libs/qt/qwthelper.cpp
View file @
b015c723
...
...
@@ -316,7 +316,7 @@ void QwtPlotWrapper::SavePlot() const
ofstrDat
.
precision
(
g_iPrec
);
ofstrDat
<<
"#
\n
"
;
ofstrDat
<<
"# comment: Created with Takin.
\n
"
;
ofstrDat
<<
"# comment: Created with Takin
(https://dx.doi.org/10.5281/zenodo.4117437)
.
\n
"
;
ofstrDat
<<
"# timestamp: "
<<
tl
::
var_to_str
<
t_real_qwt
>
(
dEpoch
)
<<
" ("
<<
tl
::
epoch_to_str
<
t_real_qwt
>
(
dEpoch
)
<<
").
\n
"
;
ofstrDat
<<
"# title: "
<<
m_pPlot
->
title
().
text
().
toStdString
()
<<
"
\n
"
;
...
...
@@ -415,7 +415,7 @@ void QwtPlotWrapper::ExportGpl() const
ofstrDat
.
precision
(
g_iPrec
);
ofstrDat
<<
"#
\n
"
;
ofstrDat
<<
"# comment: Created with Takin.
\n
"
;
ofstrDat
<<
"# comment: Created with Takin
(https://dx.doi.org/10.5281/zenodo.4117437)
.
\n
"
;
ofstrDat
<<
"# timestamp: "
<<
tl
::
var_to_str
<
t_real_qwt
>
(
dEpoch
)
<<
" ("
<<
tl
::
epoch_to_str
<
t_real_qwt
>
(
dEpoch
)
<<
").
\n
"
;
ofstrDat
<<
"#
\n
"
;
...
...
tools/monteconvo/ConvoDlg_file.cpp
View file @
b015c723
...
...
@@ -285,6 +285,8 @@ void ConvoDlg::Save(std::map<std::string, std::string>& mapConf, const std::stri
mapConf
[
strXmlRoot
+
"meta/timestamp"
]
=
tl
::
var_to_str
<
t_real
>
(
tl
::
epoch
<
t_real
>
());
mapConf
[
strXmlRoot
+
"meta/version"
]
=
TAKIN_VER
;
mapConf
[
strXmlRoot
+
"meta/info"
]
=
"Created with Takin/Convo."
;
mapConf
[
strXmlRoot
+
"meta/url"
]
=
"https://code.ill.fr/scientific-software/takin"
;
mapConf
[
strXmlRoot
+
"meta/doi"
]
=
"https://dx.doi.org/10.5281/zenodo.4117437"
;
mapConf
[
strXmlRoot
+
"meta/module"
]
=
"takin/convo"
;
mapConf
[
strXmlRoot
+
"meta/user"
]
=
pcUser
;
}
...
...
tools/res/ResoDlg_file.cpp
View file @
b015c723
...
...
@@ -318,6 +318,8 @@ void ResoDlg::Save(std::map<std::string, std::string>& mapConf, const std::strin
mapConf
[
strXmlRoot
+
"meta/timestamp"
]
=
tl
::
var_to_str
<
t_real_reso
>
(
tl
::
epoch
<
t_real_reso
>
());
mapConf
[
strXmlRoot
+
"meta/version"
]
=
TAKIN_VER
;
mapConf
[
strXmlRoot
+
"meta/info"
]
=
"Created with Takin/Reso."
;
mapConf
[
strXmlRoot
+
"meta/url"
]
=
"https://code.ill.fr/scientific-software/takin"
;
mapConf
[
strXmlRoot
+
"meta/doi"
]
=
"https://dx.doi.org/10.5281/zenodo.4117437"
;
mapConf
[
strXmlRoot
+
"meta/module"
]
=
"takin/res"
;
mapConf
[
strXmlRoot
+
"meta/user"
]
=
pcUser
;
}
...
...
tools/scanpos/scanpos.h
View file @
b015c723
...
...
@@ -79,7 +79,8 @@ bool make_plot(std::ostream& ostr,
(
*
pOstr
)
<<
"#!/usr/bin/gnuplot -p
\n
"
;
(
*
pOstr
)
<<
"#
\n
"
;
(
*
pOstr
)
<<
"# Created with Takin version "
<<
TAKIN_VER
<<
" and tlibs version "
<<
TLIBS_VERSION
<<
".
\n
"
;
<<
" and tlibs version "
<<
TLIBS_VERSION
<<
" (https://dx.doi.org/10.5281/zenodo.4117437).
\n
"
;
(
*
pOstr
)
<<
"# Date: "
<<
tl
::
epoch_to_str
<
t_real
>
(
tl
::
epoch
<
t_real
>
(),
"%b %d, %Y at %H:%M:%S (%Z)."
)
<<
"
\n
"
;
(
*
pOstr
)
<<
"#
\n\n
"
;
...
...
tools/taz/taz_export.cpp
View file @
b015c723
...
...
@@ -104,7 +104,7 @@ void TazDlg::ExportSceneSVG(QGraphicsScene& scene)
svg
.
setSize
(
QSize
(
rect
.
width
(),
rect
.
height
()));
//svg.setResolution(300);
svg
.
setViewBox
(
QRectF
(
0
,
0
,
rect
.
width
(),
rect
.
height
()));
svg
.
setDescription
(
"Created with Takin"
);
svg
.
setDescription
(
"Created with Takin
(https://dx.doi.org/10.5281/zenodo.4117437)
"
);
QPainter
painter
;
painter
.
begin
(
&
svg
);
...
...
@@ -147,7 +147,7 @@ void TazDlg::ExportBZCut()
std
::
ofstream
ofstr
(
strFile
.
toStdString
());
ofstr
.
precision
(
g_iPrec
);
ofstr
<<
"# Brillouin zone cut vertices.
\n
"
;
ofstr
<<
"# Created with Takin "
+
std
::
string
(
TAKIN_VER
)
+
".
\n
"
;
ofstr
<<
"# Created with Takin "
+
std
::
string
(
TAKIN_VER
)
+
"
(https://dx.doi.org/10.5281/zenodo.4117437)
.
\n
"
;
ofstr
<<
"
\n
"
;
const
std
::
vector
<
ublas
::
vector
<
t_real
>>&
verts
=
pTri
->
GetBZ3DPlaneVerts
();
...
...
@@ -250,7 +250,7 @@ void TazDlg::ExportBZ3DModel()
ostrComment
<<
bz
.
GetVertices
().
size
()
<<
" vertices, "
;
ostrComment
<<
pTri
->
GetBZ3DSymmVerts
().
size
()
<<
" symmetry points.
\n
"
;
std
::
string
strTakin
=
"
\n
Created with Takin "
+
std
::
string
(
TAKIN_VER
)
+
".
\n
"
;
std
::
string
strTakin
=
"
\n
Created with Takin "
+
std
::
string
(
TAKIN_VER
)
+
"
(https://dx.doi.org/10.5281/zenodo.4117437)
.
\n
"
;
strTakin
+=
"Timestamp: "
+
tl
::
epoch_to_str
<
t_real
>
(
tl
::
epoch
<
t_real
>
())
+
"
\n\n
"
;
x3d
.
SetComment
(
strTakin
+
ostrComment
.
str
());
...
...
@@ -417,7 +417,7 @@ void TazDlg::ExportUCModel()
ostrComment
<<
"Super cell contains "
<<
m_latticecommon
.
vecIdxSC
.
size
()
<<
" atoms.
\n
"
;
tl
::
log_info
(
ostrComment
.
str
());
std
::
string
strTakin
=
"
\n
Created with Takin "
+
std
::
string
(
TAKIN_VER
)
+
".
\n
"
;
std
::
string
strTakin
=
"
\n
Created with Takin "
+
std
::
string
(
TAKIN_VER
)
+
"
(https://dx.doi.org/10.5281/zenodo.4117437)
.
\n
"
;
strTakin
+=
"Timestamp: "
+
tl
::
epoch_to_str
<
t_real
>
(
tl
::
epoch
<
t_real
>
())
+
"
\n\n
"
;
x3d
.
SetComment
(
strTakin
+
ostrComment
.
str
());
...
...
tools/taz/taz_file.cpp
View file @
b015c723
...
...
@@ -565,6 +565,8 @@ bool TazDlg::Save()
mapConf
[
strXmlRoot
+
"meta/timestamp"
]
=
tl
::
var_to_str
<
t_real
>
(
tl
::
epoch
<
t_real
>
());
mapConf
[
strXmlRoot
+
"meta/version"
]
=
TAKIN_VER
;
mapConf
[
strXmlRoot
+
"meta/info"
]
=
"Created with Takin."
;
mapConf
[
strXmlRoot
+
"meta/url"
]
=
"https://code.ill.fr/scientific-software/takin"
;
mapConf
[
strXmlRoot
+
"meta/doi"
]
=
"https://dx.doi.org/10.5281/zenodo.4117437"
;
mapConf
[
strXmlRoot
+
"meta/module"
]
=
"takin"
;
mapConf
[
strXmlRoot
+
"meta/user"
]
=
pcUser
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment