holgerbrandl / kalasim

Discrete Event Simulator
https://www.kalasim.org/
MIT License
68 stars 10 forks source link

Refactor LevelStatRecord to use TickTime #29

Closed holgerbrandl closed 2 years ago

holgerbrandl commented 2 years ago

Also, consider adding asDataFrame as support API directly on the timeline

holgerbrandl commented 2 years ago

Workaround for now

fun DataFrame.convert2TT(columnName: String): DataFrame {
    return addColumn(columnName){ it["time"].map<Double>{ TickTime(it)}}
}