Skip to content

Commit dca458f

Browse files
Merge pull request #18 from ConnectedSystems/prj-restructure
Restructure project
2 parents 112d0a3 + fcb16ca commit dca458f

File tree

10 files changed

+6
-30
lines changed

10 files changed

+6
-30
lines changed
File renamed without changes.
File renamed without changes.

src/Streamfall.jl

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,14 @@ end
2222
const IHACRES = joinpath(MODPATH, "../deps", "usr", "lib", "ihacres$(libext)")
2323

2424

25-
"""@def macro
26-
27-
Inline code to avoid repetitious declarations.
28-
"""
29-
macro def(name, definition)
30-
return quote
31-
macro $(esc(name))()
32-
esc($(Expr(:quote, definition)))
33-
end
34-
end
35-
end
36-
37-
38-
@def add_preprefix begin
39-
if !isnothing(id_prefix)
40-
prefix = id_prefix * prefix
41-
end
42-
end
43-
44-
4525
include("Network.jl")
46-
include("Node.jl")
26+
include("Nodes/Node.jl")
4727
include("Climate.jl")
48-
# include("Operation.jl")
49-
include("IHACRESNode.jl")
50-
include("IHACRESExpuhNode.jl")
51-
include("GR4JNode.jl")
52-
include("HyModNode.jl")
53-
include("SYMHYDNode.jl")
28+
include("Nodes/IHACRES/IHACRESNode.jl")
29+
include("Nodes/IHACRES/IHACRESExpuhNode.jl")
30+
include("Nodes/GR4J/GR4JNode.jl")
31+
include("Nodes/HyMod/HyModNode.jl")
32+
include("Nodes/SYMHYD/SYMHYDNode.jl")
5433
include("DamNode.jl")
5534
include("EnsembleNode.jl")
5635

@@ -252,9 +231,6 @@ include("calibration.jl")
252231
include("Analysis/Analysis.jl")
253232
include("plotting.jl")
254233

255-
256-
export @def
257-
258234
# Nodes
259235
export NetworkNode, GenericNode, GenericDirectNode
260236
export IHACRES, IHACRESNode, BilinearNode, ExpuhNode, DamNode, Climate

0 commit comments

Comments
 (0)