Skip to content

Commit

Permalink
Remove unneeded context values new (#771)
Browse files Browse the repository at this point in the history
Remove values from metadata[["context"]] if there are neither descriptions nor a find -> value replacement. The traits.build workflow now automatically reads in the list of unique values from the specified column if no values are given.  (Possible following the completion of traitecoevo/traits.build#15)
  • Loading branch information
ehwenk authored Sep 18, 2023
1 parent 411f04f commit 38f6bd9
Show file tree
Hide file tree
Showing 43 changed files with 27 additions and 1,105 deletions.
40 changes: 0 additions & 40 deletions data/ABRS_2023/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,49 +140,9 @@ contexts:
- context_property: entity_measured
category: entity_context
var_in: entity_measured
values:
- value: .na.character
- value: fruit
- value: ray_achenes
- value: valve
- value: infructescence
- value: disc_achenes
- value: female_cones
- value: male_cones
- value: apiculum
- value: pinnae
- value: leaflet
- value: all
- value: leaf
- value: basal_pinnae
- value: sterile_leaf
- value: fertile_leaf
- value: quaternary_pinnae
- value: phyllode
- value: stem_leaf
- value: emergent_leaf
- value: submerged_leaf
- value: lateral_leaf
- value: proximal_pinnule
- value: distal_pinnule
- value: upper_leaf
- value: cauline_leaf
- value: cladode
- value: lower_leaf
- value: sterile_pinnule
- value: fertile_pinnule
- value: secondary_pinnae
- value: basal_leaf
- value: scale_leaf
- value: tertiary_pinnae
- value: apical_pinnule
- context_property: replicate observations
category: temporal
var_in: observation_number
values:
- value: 1
- value: 2
- value: 3
traits:
- var_in: fruit_colour
unit_in: .na
Expand Down
5 changes: 0 additions & 5 deletions data/ANBG_2019/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13330,11 +13330,6 @@ contexts:
- context_property: replicate observations
category: temporal
var_in: observation_num
values:
- value: 1
- value: 2
- value: 3
- value: 4
traits:
- var_in: LengthSample
unit_in: .na
Expand Down
3 changes: 0 additions & 3 deletions data/Buckton_2019/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ contexts:
- context_property: repeat observations
category: temporal
var_in: observation_num
values:
- value: 1
- value: 2
traits:
- var_in: Growth.Form
unit_in: .na
Expand Down
97 changes: 0 additions & 97 deletions data/Canham_2023/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,106 +88,9 @@ contexts:
- context_property: plot elevation (m)
category: plot
var_in: Elevation (m)
values:
- value: 6.62
- value: 6.85
- value: 7.69
- value: 7.59
- value: 8.42
- value: 11.07
- value: 11.76
- value: 8.98
- value: 10.72
- value: 6.76
- value: 5.97
- value: 4.39
- value: 3.46
- value: 7.35
- value: 7.5
- value: 4.74
- value: 5.58
- value: 4.45
- value: 8.29
- value: 9.35
- value: 8.21
- value: 10.93
- value: 11.01
- value: 10.56
- value: 10.19
- value: 12.29
- value: 10.61
- value: 11.03
- value: 10.87
- value: 7.67
- value: 7.56
- value: 7.71
- value: 10.82
- value: 11.85
- value: 10.02
- value: 6.14
- value: 7.92
- value: 8.6
- value: 6.63
- value: 7.12
- value: 8.0
- value: 9.54
- value: 11.04
- value: 10.54
- value: 10.63
- value: 9.93
- value: 8.17
- value: 8.18
- value: 5.42
- value: 7.45
- value: 4.24
- value: 5.53
- value: 7.22
- value: 5.26
- value: 10.06
- value: 4.0
- value: 6.48
- value: 5.11
- value: 3.84
- value: 6.33
- value: 7.21
- value: 6.89
- value: 3.94
- value: 4.54
- value: 5.72
- value: 4.07
- value: 6.1
- value: 6.27
- value: 5.1
- value: 5.93
- value: 6.82
- value: 7.58
- value: 9.18
- value: 8.38
- value: 7.98
- value: 5.28
- value: 11.32
- context_property: inundation duration (days)
category: plot
var_in: Inundation (days)
values:
- value: 38.0
- value: 10.0
- value: 6.0
- value: 5.0
- value: 3.0
- find: 0.0
value: '0.0'
- value: 18.0
- value: 36.0
- value: 4.0
- value: 31.0
- value: 19.0
- value: 2.0
- value: 34.0
- value: 12.0
- value: 15.0
- value: 37.0
- value: 11.0
traits:
- var_in: LMA (g m-2)
unit_in: g/m2
Expand Down
19 changes: 0 additions & 19 deletions data/Cernusak_2006/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,9 @@ contexts:
- context_property: sampling season
category: temporal
var_in: sampling_period
values:
- find: June
value: 1_June
description: measurement made in June
- find: July
value: 2_July
description: measurement made in July
- find: September
value: 3_September
description: measurement made in September
- find: October
value: 4_October
description: measurement made in October
- find: January
value: 5_January
description: measurement made in January
- context_property: replicate observations
category: temporal
var_in: observation_number
values:
- value: 1
- value: 2
traits:
- var_in: R25_stem
unit_in: umol{CO2}/m2/s
Expand Down
15 changes: 5 additions & 10 deletions data/Cheesman_2020/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,15 @@ contexts:
category: method_context
var_in: branch location
values:
- find: Reforestation
value: reforestation
- value: Reforestation
description: Measurements made on an individual growing at a reforestation site.
- find: canopy crown
value: canopy crown
- value: canopy crown
description: Measurements made on branches in the canopy crown.
- find: inner canopy
value: inner canopy
- value: inner canopy
description: Measurements made on branches in the inner canopy.
- find: understorey
value: understorey
- value: understorey
description: Measurements made on branches in the understorey.
- find: notable gap
value: notable gap
- value: notable gap
description: Measurements made on an individual growing in a notable gap.
- context_property: drought treatment
category: treatment
Expand Down
3 changes: 0 additions & 3 deletions data/Clarke_2009/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ contexts:
- context_property: replicate observations
category: temporal
var_in: observation_num
values:
- value: 1
- value: 2
- context_property: time to flowering type
category: entity_context
var_in: time_to_flowering_type
Expand Down
3 changes: 0 additions & 3 deletions data/Cooper_2013/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ contexts:
- context_property: replicate observations
category: temporal
var_in: observation_num
values:
- value: 1
- value: 2
traits:
- var_in: form
unit_in: .na
Expand Down
40 changes: 2 additions & 38 deletions data/Crous_2013/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,10 @@ contexts:
category: treatment
var_in: Temp-trt
values:
- find: ambient
value: ambient
- value: ambient
description: Plants grown at ambient temperatures; Jan average max = 29.4 dec
C / July average min = 3.2 dec C.
- find: elevated
value: elevated
- value: elevated
description: Plants grown 3 deg C above ambient temperatures.
- context_property: CO2 treatment
category: treatment
Expand All @@ -168,40 +166,6 @@ contexts:
- context_property: plots
category: plot
var_in: PlotSite
values:
- value: 1.0
- value: 6.0
- value: 12.0
- value: 16.0
- value: 23.0
- value: 29.0
- value: 34.0
- value: 38.0
- value: 42.0
- value: 47.0
- value: 51.0
- value: 57.0
- value: 62.0
- value: 67.0
- value: 71.0
- value: 75.0
- value: 80.0
- value: 87.0
- value: 91.0
- value: 96.0
- value: 101.0
- value: 107.0
- value: 115.0
- value: 120.0
- value: 125.0
- value: 128.0
- value: 130.0
- value: 134.0
- value: 138.0
- value: 143.0
- value: 148.0
- value: 153.0
- value: 157.0
traits:
- var_in: Vcmax
unit_in: umol/m2/s
Expand Down
30 changes: 2 additions & 28 deletions data/Crous_2019/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,43 +96,17 @@ contexts:
category: method_context
var_in: Age
values:
- find: new
value: new
- value: new
description: Leaves are new, aged 35-88 days; see data.csv file for exact age.
- find: old
value: old
- value: old
description: Leaves are mature; aged 93-404 days; see data.csv file for exact
age.
- context_property: repeat observations
category: temporal
var_in: observation_num
values:
- value: '01'
- value: '02'
- value: '03'
- value: '04'
- value: '05'
- value: '06'
- value: '07'
- value: 08
- value: 09
- value: '10'
- value: '11'
- value: '12'
- value: '13'
- value: '15'
- value: '16'
- value: '17'
- context_property: blocks
category: plot
var_in: Ring
values:
- value: 1
- value: 2
- value: 3
- value: 4
- value: 5
- value: 6
traits:
- var_in: LMA (g m-2)
unit_in: g/m2
Expand Down
Loading

0 comments on commit 38f6bd9

Please sign in to comment.