Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

changed tokenizer interface #707

Merged
merged 3 commits into from
May 11, 2021
Merged

changed tokenizer interface #707

merged 3 commits into from
May 11, 2021

Conversation

JensWehner
Copy link
Member

No description provided.

@JensWehner JensWehner requested a review from felipeZ May 10, 2021 19:06
@JensWehner
Copy link
Member Author

@votca-bot format

@JensWehner
Copy link
Member Author

@votca-bot changelog: adapted tokenizer api

@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #707 (3c04a8f) into master (fc0b13e) will decrease coverage by 0.0%.
The diff coverage is 32.1%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #707     +/-   ##
========================================
- Coverage    51.2%   51.1%   -0.1%     
========================================
  Files         294     294             
  Lines       26847   27269    +422     
========================================
+ Hits        13760   13961    +201     
- Misses      13087   13308    +221     
Impacted Files Coverage Δ
src/libxtp/calculators/eanalyze.cc 0.0% <0.0%> (ø)
src/libxtp/calculators/ianalyze.cc 0.0% <0.0%> (ø)
src/libxtp/calculators/mapchecker.h 0.0% <0.0%> (ø)
src/libxtp/calculators/neighborlist.cc 0.0% <0.0%> (ø)
src/libxtp/calculators/vaverage.cc 0.0% <0.0%> (ø)
src/libxtp/esp2multipole.cc 0.0% <0.0%> (ø)
src/libxtp/geometry_optimization.cc 0.0% <0.0%> (ø)
src/libxtp/gyration.cc 0.0% <0.0%> (ø)
src/libxtp/jobcalculators/iexcitoncl.cc 0.0% <0.0%> (ø)
src/libxtp/jobcalculators/iqm.cc 0.0% <0.0%> (ø)
... and 158 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc0b13e...3c04a8f. Read the comment docs.

Copy link
Member

@felipeZ felipeZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR greatly improves the readability, great job!

tools::Tokenizer tok_md_atoms(frag.get("mdatoms").as<std::string>(), " \t\n");
std::vector<std::string> md_atoms = tok_md_atoms.ToVector();
std::vector<std::string> map_atoms =
frag.get(_mapatom_xml["atoms"]).template as<std::vector<std::string>>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the use of the template keyword here :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used to indicate that the next < is not a comparison operator but a template parameter

https://eigen.tuxfamily.org/dox/TopicTemplateKeyword.html

@JensWehner JensWehner merged commit 31de36c into master May 11, 2021
@JensWehner JensWehner deleted the tok_refactor branch May 11, 2021 09:30
votca-bot added a commit to votca/votca that referenced this pull request May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants