Hi, everybody! I’m trying to see transmission lines between 6 specific divisions.
To do it, I created new geographical unit: aboveregion, to separate them from other units. So, now I have: aboveregion, region, country, division, location.
As well I added two additional columns (aboveregion; aboveregion_exposure) in my metadata file and assigned the values from division columns to them.
I added the coordinates of my divisions of interest in lat_long file, modified auspice_config.json file:
“geo_resolutions”: [“location”, “division”, “country”, “region”,“aboveregion”],
and
“filters”: [
“recency”,
“aboveregion”,
“region”,
“country”,
“division”,
“location”,
“host”,
“author”
],
Here is my build.yaml:
traits:
default:
sampling_bias_correction: 2.5
columns: [“aboveregion_exposure”]exposure:
default:
trait: “aboveregion”
exposure: “aboveregion_exposure”
But still I have the following error:
Traceback (most recent call last):
File “./scripts/modify-tree-according-to-exposure.py”, line 141, in
traverse(input_json[“tree”], switch_attribute)
File “./scripts/modify-tree-according-to-exposure.py”, line 10, in traverse
traverse(child, fun)
File “./scripts/modify-tree-according-to-exposure.py”, line 10, in traverse
traverse(child, fun)
File “./scripts/modify-tree-according-to-exposure.py”, line 10, in traverse
traverse(child, fun)
[Previous line repeated 5 more times]
File “./scripts/modify-tree-according-to-exposure.py”, line 8, in traverse
fun(node)
File “./scripts/modify-tree-according-to-exposure.py”, line 64, in switch_attribute
raise Exception(“Where there’s SAMPLING_TRAIT we should always have EXPOSURE_TRAIT”)
Exception: Where there’s SAMPLING_TRAIT we should always have EXPOSURE_TRAIT
When I add this line in my build.yaml:
skip_travel_history_adjustment: True
I don’t have the error, but I don’t have transmission lines as well.
Unfortunately, the solution from transmission lines for divisions didn’t help me.
Thank you,
Dmitrii