Loading...
Searching...
No Matches
q3::detail Namespace Reference

Functions

void crystal_to_spglib (const Crystal &crystal, double lattice[3][3], std::vector< double > &positions, std::vector< int > &types)
 
nlohmann::json read_json_file (const std::string &path)
 
std::string resolve_path (const std::string &base_directory, const std::string &path)
 

Function Documentation

◆ crystal_to_spglib()

◆ read_json_file()

nlohmann::json q3::detail::read_json_file ( const std::string &  path)
inline

Read a JSON file and return the parsed object.

Definition at line 34 of file utils.hpp.

Referenced by q3::YAMLInputParser::parse(), and q3::substitute_material().

◆ resolve_path()

std::string q3::detail::resolve_path ( const std::string &  base_directory,
const std::string &  path 
)
inline

Resolve a path relative to a given directory. Returns the path unchanged if it is already absolute.

Definition at line 24 of file utils.hpp.

Referenced by q3::YAMLInputParser::parse().