TrainRun.jl/README.md

63 lines
2.4 KiB
Markdown
Raw Normal View History

2022-05-04 16:53:58 +02:00
# TrainRuns
2021-10-13 16:49:42 +02:00
2022-05-04 17:25:08 +02:00
[![License: ISC](https://img.shields.io/badge/license-ISC-green.svg)](https://opensource.org/licenses/ISC) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6448563.svg)](https://doi.org/10.5281/zenodo.6448563) [![Build Status](https://github.com/railtoolkit/TrainRuns.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/railtoolkit/TrainRuns.jl/actions/workflows/CI.yml?query=branch%3Amain)
------------
# About
2022-05-04 16:53:58 +02:00
TrainRuns.jl is a step towards open science and open data in railway engineering. Its modular design offers the possibility to serve as a basis for future optimization and development. TrainRuns.jl is suitable for qualitative calculations to compare different trains, and it is publicly available, and we invite others to collaborate.
2021-10-13 16:49:42 +02:00
------------
# Installation
2022-05-04 17:25:08 +02:00
Use the package manager provided by julia:
```julia
julia> # use the ] key
(@v1.x) pkg> add TrainRuns
(@v1.x) pkg> # use backspace
julia> using TrainRuns
```
2021-10-13 16:49:42 +02:00
The required julia packages are
- YAML.jl
- JSONSchema.jl
- DataFrames.jl
- CSV.jl
2021-10-13 16:49:42 +02:00
------------
# Minimal working example
```julia
2022-05-04 17:25:08 +02:00
using TrainRuns
train = Train("test/data/trains/freight.yaml")
path = Path("test/data/paths/const.yaml")
2021-10-13 16:49:42 +02:00
runtime = trainrun(train, path)
println("The train needs $runtime seconds for the running path.")
```
2021-10-13 16:49:42 +02:00
------------
# Acknowledgement
This work was supervised by South Westphalia University of Applied Sciences and Technical University Braunschweig.
2021-10-13 16:49:42 +02:00
------------
# License
2022-05-04 17:25:08 +02:00
[![Open Source Initiative Approved License logo](https://opensource.org/files/OSIApproved_100X125.png "Open Source Initiative Approved License logo")](https://opensource.org)
2021-10-13 16:49:42 +02:00
ISC License (ISC)
2022-05-04 17:25:08 +02:00
Copyright 2022 Max Kannenberg, Martin Scheidt
2021-10-13 16:49:42 +02:00
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.