You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am working on a function to write swate tables from a extern data type. The function looks like this:
/// tables is the external datatype parsed to `Assay`letassay= Export.parseBuildingBlockSeqsToAssay tables
leta= QueryModel.QAssay.fromAssay assay
letwb=
workbook {for(i,s)in List.indexed a.Sheets do QSheet.toSheet i s
sheet "Assay"{for r in MetaData.toDSLSheet assay []do r
}}/// Parsing unit is not done correctly.letfsSpreadsheet= wb.Value.Parse().ToBytes()
If i try to write Swate unit columns, the final .xlsx file does not contain any numberFormat information. All cells have DataType string, even though it should be something like this "0.00 \"unit\"".
Image shows Cell.DataType and Cell.Value
If i convert my assay to json with the following code, all unit information is still there, so i assume the information is lost somwhere in ISADotNet to SpreadsheetFs
/// tables is the external datatype parsed to `Assay`letassay= Export.parseBuildingBlockSeqsToAssay tables
letparsedJsonStr= ISADotNet.Json.Assay.toString assay
// no unit information lost.
The text was updated successfully, but these errors were encountered:
Freymaurer
added
Type: Feature Request
This item is confirmed by the maintainers to be a request for a new feature
and removed
Type: Bug
Something is not working, and it is confirmed by maintainers to be a bug.
labels
Jun 6, 2024
Describe the bug
I am working on a function to write swate tables from a extern data type. The function looks like this:
Most code is taken from here https://github.com/nfdi4plants/ISADotNet/blob/a06af930e4d3f9d3c49a7b07bb0496f927c4e6cc/src/ISADotNet.XLSX/AssayFile/Assay.fs#L188
If i try to write Swate unit columns, the final .xlsx file does not contain any numberFormat information. All cells have
DataType
string, even though it should be something like this"0.00 \"unit\""
.Image shows Cell.DataType and Cell.Value
If i convert my
assay
to json with the following code, all unit information is still there, so i assume the information is lost somwhere in ISADotNet to SpreadsheetFsThe text was updated successfully, but these errors were encountered: