Skip to content

Commit

Permalink
Merge pull request #18 from ConnectedSystems/prj-restructure
Browse files Browse the repository at this point in the history
Restructure project
  • Loading branch information
ConnectedSystems authored Nov 30, 2024
2 parents 112d0a3 + fcb16ca commit dca458f
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 30 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 6 additions & 30 deletions src/Streamfall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,14 @@ end
const IHACRES = joinpath(MODPATH, "../deps", "usr", "lib", "ihacres$(libext)")


"""@def macro
Inline code to avoid repetitious declarations.
"""
macro def(name, definition)
return quote
macro $(esc(name))()
esc($(Expr(:quote, definition)))
end
end
end


@def add_preprefix begin
if !isnothing(id_prefix)
prefix = id_prefix * prefix
end
end


include("Network.jl")
include("Node.jl")
include("Nodes/Node.jl")
include("Climate.jl")
# include("Operation.jl")
include("IHACRESNode.jl")
include("IHACRESExpuhNode.jl")
include("GR4JNode.jl")
include("HyModNode.jl")
include("SYMHYDNode.jl")
include("Nodes/IHACRES/IHACRESNode.jl")
include("Nodes/IHACRES/IHACRESExpuhNode.jl")
include("Nodes/GR4J/GR4JNode.jl")
include("Nodes/HyMod/HyModNode.jl")
include("Nodes/SYMHYD/SYMHYDNode.jl")
include("DamNode.jl")
include("EnsembleNode.jl")

Expand Down Expand Up @@ -252,9 +231,6 @@ include("calibration.jl")
include("Analysis/Analysis.jl")
include("plotting.jl")


export @def

# Nodes
export NetworkNode, GenericNode, GenericDirectNode
export IHACRES, IHACRESNode, BilinearNode, ExpuhNode, DamNode, Climate
Expand Down

0 comments on commit dca458f

Please sign in to comment.