Fahdi Kanavati
Fahdi Kanavati
Not the most elegant solution, but one way to do it is to override `get_params_from_function` ```python import inspect from typing import Any, Callable, Dict, get_type_hints, Optional, Tuple import dataclasses import...
@neurolabusc here's an example image where this seems to occur [labelmap.nii.gz](https://github.com/niivue/niivue/files/14888631/labelmap.nii.gz) It contains two labels, but then the range appears as 0..1 in niivue  below is from opening up...
Ah, I see. I'll do that. Thanks for getting back to me so quickly!
It seems this might be because when `optional` is set, it only sets `default = None`, but doesn't also set `default_factory = None`. https://github.com/vitalik/django-ninja/blob/08af4b9b571c92a7d14edaeb53cf54bb673bea0d/ninja/orm/fields.py#L157-L159
Hey @aziz, sorry, I've been quite busy lately. I think it would be probably good at some point to add features to: - organise notes into notebooks - pin/unpin notes...
create a pull request
You could just deploy the metrics server on your cluster to see if that solves your problem. It's lightweight. https://github.com/kubernetes-sigs/metrics-server