Kraysent / OMTool

Modeling N-Body problem in galactic evolution application.
https://omtool.readthedocs.io/en/latest/
Apache License 2.0
0 stars 0 forks source link

Move model reading process to a separate microservice #64

Closed Kraysent closed 2 years ago

Kraysent commented 2 years ago

Problem: both integration and analysis tools have very similar modules that read models from disk and then operate on them. This causes duplication of code and creates two maintaining processes that can be merged into one.

Possible solution: create separate microservice in the root of repository that would operate like a blackbox: input is config dictionary like so:

input:
  - type: fits
    filename: /home/user/model.fits
  - type: csv
    filename: /home/user/host.csv

and the output is a generator of Snapshot objects and probably single method to show the number of snapshots or something like that.

Kraysent commented 2 years ago

I the future this microservice might deal with reading of csv files with models to creation tool so might need to account for that in naming and scalability.