Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ The test suite includes:
- **test_colormaps**: Color mapping functions
- **test_term_render_mode**: Terminal render mode parsing/cycling helpers
- **test_range_popup**: Range popup logic (symmetric computation, value parsing)
- **test_timeseries**: Time series reading, multi-file concatenation, and CF time unit conversion
- **test_file_netcdf**: NetCDF file I/O
- **test_file_zarr**: Zarr file I/O (when built with `WITH_ZARR=1`)
- **test_integration**: End-to-end workflow tests
Expand All @@ -211,6 +212,12 @@ The test suite includes:
- **Minimum/Maximum**: Editable text fields for exact values
- **Symmetric about Zero**: Sets range to [-max(|min|,|max|), max(|min|,|max|)]
- **Reset to Global Values**: Restores the variable's full data range
- **Time series plot**: Click on the image to show a time series popup at that location:
- Displays value vs time for the selected variable at the clicked grid point
- Y-axis with numeric tick labels, X-axis with CF time date formatting (when detected)
- Blue data line with dots at data points; gaps shown for fill/missing values
- Works with both single files and multi-file datasets
- When files have different time epochs, values are automatically normalized to a common reference
- **Dimension panel**: Shows dimension names, ranges, current values
- **Colorbar**: Min/max and intermediate labels update as you adjust range

Expand Down
9 changes: 8 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ endif
SRCDIR = ../src

# Test executables
TEST_TARGETS = test_kdtree test_mesh test_regrid test_colormaps test_file_netcdf test_integration test_term_render_mode test_range_popup
TEST_TARGETS = test_kdtree test_mesh test_regrid test_colormaps test_file_netcdf test_integration test_term_render_mode test_range_popup test_timeseries

# Add zarr test if enabled
ifdef WITH_ZARR
Expand Down Expand Up @@ -103,6 +103,9 @@ RANGE_UTILS_OBJ = $(SRCDIR)/interface/range_utils.c
test_range_popup: test_range_popup.c $(RANGE_UTILS_OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)

test_timeseries: test_timeseries.c $(FILE_NETCDF_OBJ) $(MESH_DEPS) $(KDTREE_OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)

# Zarr test (only built with WITH_ZARR=1)
test_file_zarr: test_file_zarr.c $(FILE_ZARR_OBJ) $(CJSON_OBJ) $(MESH_DEPS) $(KDTREE_OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
Expand Down Expand Up @@ -157,6 +160,9 @@ test-term-render-mode: test_term_render_mode
test-range-popup: test_range_popup
./test_range_popup

test-timeseries: test_timeseries
./test_timeseries

test-zarr: test_file_zarr
./test_file_zarr

Expand Down Expand Up @@ -194,6 +200,7 @@ help:
@echo " test-integration - Run Integration tests only"
@echo " test-term-render-mode - Run terminal render mode tests only"
@echo " test-range-popup - Run range popup logic tests only"
@echo " test-timeseries - Run timeseries reading tests only"
@echo " memcheck - Run valgrind memory check on all tests"
@echo " clean - Remove test executables and temp files"
@echo " help - Show this help message"
Expand Down
Loading