nfdi4plants/ARCtrl

[BUG] CompositeCell.Data toXX functions return failwith

Closed this issue · 2 comments

This issue is related to the following:

| Data d -> failwith "Data cell cannot be converted to Unitized cell."

These are functions to generalize usage in tools. The implemented behavior is especially annoying as we allow transforming into freetext, which in return can be transformed to the other cell types. So now i need to do: this.ToFreeTextCell().ToTermCell()

In what scenario do you need to transform a data cell to a unitized or term cell?

Any solution would IMO be very arbitrary and hard to predict as a user. Therefore I implemented it like this.

In the same scenario i would use _.ToTermCell on a FreeText cell, any user requested converion between cell types.