Skip to content

Fix a few issues from develop (found during docker compose tests)#93

Open
prasad-sawantdesai wants to merge 19 commits into
iterorganization:developfrom
prasad-sawantdesai:test_docker_compose
Open

Fix a few issues from develop (found during docker compose tests)#93
prasad-sawantdesai wants to merge 19 commits into
iterorganization:developfrom
prasad-sawantdesai:test_docker_compose

Conversation

@prasad-sawantdesai

@prasad-sawantdesai prasad-sawantdesai commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

This PR is on top of #88 and fixed things which have been found while testing.

00c45dc — Fix numpy array JSON serialization (Jun 18, 00:27)

  • json.py: Added numpy array and scalar handlers to CustomEncoder
  • Fixes crash when ingesting simulations with numpy array metadata: TypeError: Object of type ndarray is not JSON serializable
  • Arrays encoded as {"min": x, "max": x} dicts

581f245 — Handle min/max dict values in validation (Jun 18, 09:43)

  • validator.py: Fixed _normalize_coerce_numpy to convert {"min": x, "max": x} dicts → np.array([min, max]) so cerberus ge/gt/lt/le rules work on range metadata

a0638eb — Handle RangeValue pydantic model in validation (Jun 18, 12:51)

  • validator.py: Extended _normalize_coerce_numpy to also handle RangeValue pydantic objects (not just dicts)
  • config/simdb.cfg: Added [development] disable_checksum = True for Windows push compatibility

Yannicked and others added 16 commits June 4, 2026 13:53
symlink validation-schema.yaml
simdb.cli.remote_api.RemoteError: Cannot process IMAS data as server.imas_remote_host configuration option not set
…pushed simulations) error: sqlalchemy.exc.StatementError: (builtins.TypeError) Object of type ndarray is not JSON serializable
…irect stub and updated application logic. Fixes cerberus.schema.SchemaError: schema definition for field 'iter_scenarios_validation.yaml' must be a dict. symlinks behaves differently when you do git clone on windows. updated documentation
prasad-sawantdesai added a commit to prasad-sawantdesai/SimDB that referenced this pull request Jun 19, 2026
@olivhoenen olivhoenen requested a review from Louwrensth June 22, 2026 15:24
@olivhoenen olivhoenen changed the title Test docker compose Fix a few issues from develop (found during docker compose tests) Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants