Closed kbagstad closed 13 years ago
it's a syntax error (IllegalArgument makes quite a bit of sense). Lines like (:in-floodplain) are illegal - the keyword (:xxx) extracts the given element from the following map, so they should read (:in-floodplain %) - the % is a map containing all the values for the current context. Note also that those won't work in the second model, because you didn't put in the :as in the context to define those names. r.
moving the other issue into its own place - these are individual issues, not emails. People see them.
On to the sediment model... 2 issues.
1) I replaced:
(defmodel farmers-deposition-use-puget DepositionProneFarmers
(binary-coding DepositionProneFarmers :context ((ranking nlcd:NLCDNumeric :as farmlandpresent) (categorization geofeatures:Floodplain :as floodplains)) :state #(if (and (= (:floodplains %) 1.0) (= (:farmland-present %) 82.0)) 1 0)))
With this: (defmodel farmers-deposition-use-puget DepositionProneFarmers (binary-coding DepositionProneFarmers :context (floodplains farmland) :state #(if (and (= (tl/conc 'soilRetentionEcology:InFloodplain) (:in-floodplain)) (= (tl/conc 'soilRetentionEcology:FarmlandPresent) (:farmland-present))) 1 0)))
And used model -d core.models.sediment-puget/farmers-deposition-use-puget, which was throwing an unintelligible error message earlier, and now is giving the following, ideas appreciated:
2) for some strange reason, model -d core.models.sediment-puget/source-puget core.contexts.beta/wria9_1024 produces valid-looking star diagrams, yet when I model -o source-puget, only the slope-stability and percent-vegetation-cover input layers have any data in them. Can you run and see if it's possible to replicate that?