Skip to content

Commit

Permalink
make fillmissingcells optional for addcolumns
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Jan 8, 2024
1 parent 208839a commit a1921ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.fs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ let tryFromFsWorksheet (sheet : FsWorksheet) =
|> Seq.map CompositeColumn.fixDeprecatedIOHeader
|> composeColumns
ArcTable.init sheet.Name
|> ArcTable.addColumns compositeColumns
|> ArcTable.addColumns(compositeColumns,SkipFillMissing = true)
|> Some
| None ->
None
Expand Down
4 changes: 2 additions & 2 deletions src/ISA/ISA/ArcTypes/ArcTable.fs
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ type ArcTable(name: string, headers: ResizeArray<CompositeHeader>, values: Syste
)
if not(SkipFillMissing = Some true) then Unchecked.fillMissingCells this.Headers this.Values

static member addColumns (columns: CompositeColumn [],?index: int) =
static member addColumns (columns: CompositeColumn [],?index: int,?SkipFillMissing) =
fun (table:ArcTable) ->
let newTable = table.Copy()
newTable.AddColumns(columns, ?index = index)
newTable.AddColumns(columns, ?index = index, ?SkipFillMissing = SkipFillMissing)
newTable

// - Column API - //
Expand Down

0 comments on commit a1921ef

Please sign in to comment.