Skip to content

UG-Team-Data-Science/ocean-battery-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OceanBattery API (FastAPI)

This API is a thin HTTP wrapper around the existing MATLAB worker OceanBatteryWithMatlab/functions/worker_kvalues_watch_jsonlines.m. It writes parameter files into a watched input directory and returns the computed K-values when the MATLAB worker writes the output JSONL.

How it works

  • API writes <uuid>.json into IN_DIR.
  • MATLAB worker watches IN_DIR for *.json and writes <uuid>.jsonl into OUT_DIR.
  • API reads the JSONL, extracts the k_values, and returns them.

Docker

Build the container and website:

docker compose build

Run (mount the same directories used by the MATLAB worker):

docker compose up -d

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published