Skip to content

Commit

Permalink
Merge pull request #77 from /issues/76/colorder
Browse files Browse the repository at this point in the history
Issue 76: preserve column order from the columns option
  • Loading branch information
JulienPeloton committed May 15, 2019
2 parents 7aa656b + b299cdd commit 24dd75d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ object FitsHduBintable {
colNames.values.toList.asInstanceOf[List[String]]
}

val colPositions = selectedColNames.map(
x => getColumnPos(keyValues, x)).toList.sorted
val colPositions = if (selectedColumns != null) {
selectedColNames.map(x => getColumnPos(keyValues, x)).toList
} else {
selectedColNames.map(x => getColumnPos(keyValues, x)).toList.sorted
}


val rowTypes = getColTypes(keyValues)

Expand Down

0 comments on commit 24dd75d

Please sign in to comment.