Verified Commit b015c723 authored by Tobias WEBER's avatar Tobias WEBER
Browse files

added version comments

parent 354bf62d
......@@ -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";
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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";
......
......@@ -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 = "\nCreated with Takin " + std::string(TAKIN_VER) + ".\n";
std::string strTakin = "\nCreated 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 = "\nCreated with Takin " + std::string(TAKIN_VER) + ".\n";
std::string strTakin = "\nCreated 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());
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment