Boehringer-Ingelheim / dso

Data Science Operations (dso) command line tool
GNU General Public License v3.0
12 stars 0 forks source link

compile-config yaml variable templating with !path #32

Open tschwarzl opened 1 day ago

tschwarzl commented 1 day ago

Description of bug

params.in.yaml

A:  !path "0100_ETL"
B:  "{{ A }}/0101_DataTransfer"

leads to

B: 
  <dso.compile_config._load_yaml_with_auto_adjusting_paths.<locals>.AutoAdjustingPathWithLocation
  object at 0x7f869e8c69d0>/0101_DataTransfer

while

A: "0100_ETL"
B: !path "{{ A }}/0101_DataTransfer"

leads to

A: 0100_ETL
B: '{{ s0100 }}/0101_DataTransfer'

DSO Error log

No response

Before submitting

tschwarzl commented 1 day ago

Also,

A: "test"
B: !path "dir/{{ test }}"

results in

B: dir/{{ test }}

It seems that !path has problems with variable templating