Skip to content
Snippets Groups Projects
Commit d08910ac authored by Bentriou Mahmoud's avatar Bentriou Mahmoud
Browse files

using MacroTools is relocated and added to dependencies

parent 7a65f743
Branches
No related tags found
No related merge requests found
Pipeline #19672 failed
...@@ -12,6 +12,7 @@ Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" ...@@ -12,6 +12,7 @@ Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
FunctionWrappers = "069b7b12-0de2-55c6-9aab-29f3d0a68a2e" FunctionWrappers = "069b7b12-0de2-55c6-9aab-29f3d0a68a2e"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce" NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0" PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
......
...@@ -18,6 +18,7 @@ import Distributions: insupport, isbounded, ncategories, pdf ...@@ -18,6 +18,7 @@ import Distributions: insupport, isbounded, ncategories, pdf
import FunctionWrappers: FunctionWrapper import FunctionWrappers: FunctionWrapper
import Logging: @info import Logging: @info
using LinearAlgebra using LinearAlgebra
using MacroTools
import NearestNeighbors: KDTree, knn import NearestNeighbors: KDTree, knn
import Random: rand, rand! import Random: rand, rand!
import ScikitLearn import ScikitLearn
......
using MacroTools
function get_multiplicand_and_species(expr::Expr) function get_multiplicand_and_species(expr::Expr)
@assert expr.args[1] == :* @assert expr.args[1] == :*
multiplicand = reduce(*, expr.args[2:(end-1)]) multiplicand = reduce(*, expr.args[2:(end-1)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment