Skip to content

Commit

Permalink
Issue 76: preserve column order from the columns option
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed May 14, 2019
1 parent 7aa656b commit b299cdd
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 b299cdd

Please sign in to comment.