harmonydata / harmonydata/harmonyapi

Error saving cache

Offen
#19 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
2
Forks
16
Ø Merge
1 Min.
Gemergte PRs (30 T.)
1

Beschreibung

## Description

I found this error in the Harmony prod server logs. Not sure exactly which part of the code base it originates from.

```
INFO: Cache instruments_cache.json saved...
Could not save vectors cache: Object of type ndarray is not JSON serializable.
```

## Environment

Centos

## How to Reproduce

1. Run Harmony in Docker `docker run -p 8000:8000 harmonydata/harmonyapi:20250311105945_1df2e89`
2. Run any harmonisation
3.

## Expected Behaviour

The cache should be saved without errors. It looks like we're trying to serialise a Numpy array to JSON. Maybe you can find that part of the code and switch it to Pickle?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.