Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
SensorNetOrg committed Oct 5, 2023
1 parent 8fe8125 commit cb286da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,15 @@ RayBNN_DataLoader::Model::YAML::read(
);
```



# Write YAML Model Information
```
RayBNN_DataLoader::Model::YAML::write(
"./sample.yaml",
&modeldata_string,
&modeldata_float,
&modeldata_int,
);
```
3 changes: 3 additions & 0 deletions tests/test_parse_YAML.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,7 @@ fn test_parse_YAML() {
assert!(modeldata_float.contains_key("delete_rate"));
assert_eq!(modeldata_float["delete_rate"].clone(), 0.1);



std::fs::remove_file("./sample.yaml");
}

0 comments on commit cb286da

Please sign in to comment.