Skip to content

Commit

Permalink
Merge pull request #97 from BerkeleyLab/fix-example
Browse files Browse the repository at this point in the history
fix(example): work around associate issues
  • Loading branch information
rouson authored Nov 6, 2023
2 parents dabc96c + 7fb06f2 commit 1abb927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions example/print-training-configuration.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ program print_training_configuration
hyperparameters_t(mini_batches=10, learning_rate=1.5, optimizer = "adam"), &
network_configuration_t(skip_connections=.false., nodes_per_layer=[2,72,2], activation_name="sigmoid") &
))
associate(lines => training_configuration%to_json())
associate(json_file => file_t(lines))
call json_file%write_lines()
end associate
associate(json_file => file_t(training_configuration%to_json()))
call json_file%write_lines()
end associate
end associate
end program
2 changes: 1 addition & 1 deletion fpm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ maintainer = "[email protected]"
[dependencies]
assert = {git = "https://github.com/sourceryinstitute/assert", tag = "1.5.0"}
sourcery = {git = "https://github.com/sourceryinstitute/sourcery", tag = "4.4.4"}
netcdf-interfaces = {git = "https://github.com/rouson/netcdf-interfaces.git", branch = "implicit-interfaces"}
netcdf-interfaces = {git = "https://github.com/LKedward/netcdf-interfaces.git", rev = "d2bbb71ac52b4e346b62572b1ca1620134481096"}

0 comments on commit 1abb927

Please sign in to comment.