The "result_metrics.csv" output of the method convert_to_csv in pytreedb/db.py is not working as expected.
Tree entries may have different tree metrics, i.e., not all trees have an entry for DBH. Right now, metrics for each tree are simply appended to a list in a loop and then written to the file and might therefore not correspond to the right column in the header.
Maybe we first have to create the header and then find out at which position in the list metrics_line the value must be inserted..
The "result_metrics.csv" output of the method
convert_to_csv
inpytreedb/db.py
is not working as expected. Tree entries may have different tree metrics, i.e., not all trees have an entry for DBH. Right now, metrics for each tree are simply appended to a list in a loop and then written to the file and might therefore not correspond to the right column in the header. Maybe we first have to create the header and then find out at which position in the listmetrics_line
the value must be inserted..