[WIP] Implement growth assessment using WHO indicators #80

Draft
joao.dubas wants to merge 92 commits from jpd-feat-add-bmi-module-with-live-view into main
43 changed files with 32904 additions and 99 deletions
Showing only changes of commit ffa2a68b7a - Show all commits

View File

@@ -321,6 +321,8 @@ defmodule Growth.Indicators.Download do
end
def save(data, measurement) do
File.write("priv/growth/indicators/#{measurement}.csv", data)
:wabanex
|> Application.app_dir(["priv", "growth", "indicators", "#{measurement}.csv"])
|> File.write(data)
end
end

View File

@@ -66,7 +66,8 @@ defmodule Growth.Indicators.Load do
def all do
Logger.debug("load growth indicators")
"priv/growth/indicators/*.csv"
:wabanex
|> Application.app_dir(["priv", "growth", "indicators", "*.csv"])
|> Path.wildcard()
|> Enum.map(&create_ets_from_filename/1)
|> Enum.map(&Task.async(__MODULE__, :load_measure, [&1]))