Skip to content

Commit

Permalink
feat: stick to the default of having config value keys in camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
fengelniederhammer committed Oct 12, 2023
1 parent bc7fd87 commit a1cae40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/silo/storage/reference_genomes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct nlohmann::adl_serializer<silo::ReferenceGenomes> {
for (const auto& [name, sequence] : reference_genomes.raw_nucleotide_sequences) {
nucleotide_sequences_json.push_back({{"name", name}, {"sequence", sequence}});
}
js_object["nucleotide_sequences"] = std::move(nucleotide_sequences_json);
js_object["nucleotideSequences"] = std::move(nucleotide_sequences_json);

nlohmann::json aa_sequences_json;
for (const auto& [name, sequence] : reference_genomes.raw_aa_sequences) {
Expand Down Expand Up @@ -84,7 +84,7 @@ ReferenceGenomes readFromJson(const std::filesystem::path& reference_genomes_pat
nlohmann::json reference_genomes_json;
std::ifstream(reference_genomes_path) >> reference_genomes_json;

const nlohmann::json nuc_seq_json = reference_genomes_json["nucleotide_sequences"];
const nlohmann::json nuc_seq_json = reference_genomes_json["nucleotideSequences"];
const nlohmann::json aa_seq_json = reference_genomes_json["genes"];

for (const auto& [key, value] : nuc_seq_json.items()) {
Expand Down
Loading

0 comments on commit a1cae40

Please sign in to comment.