Loading .pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ repos: - id: end-of-file-fixer - id: sort-simple-yaml - repo: https://github.com/psf/black rev: 24.2.0 rev: 24.3.0 hooks: - id: black args: ['--line-length=119'] Loading .readthedocs.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ build: os: ubuntu-20.04 tools: python: "mambaforge-4.10" jobs: pre_build: - mkdir ~/tmp sphinx: builder: html Loading conda.recipe/meta.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ requirements: - dxchange - olefile - pooch - panel<1.3 - param<2 - panel - param - pyvista - holoviews - bokeh Loading environment.yml +2 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ dependencies: - datashader - hvplot # GUI - panel<1.3 - param<2 - panel - param - pyvista # IO - dxchange Loading src/imars3d/backend/dataio/data.py +11 −5 Original line number Diff line number Diff line Loading @@ -59,14 +59,20 @@ class Foldernames(param.Foldername): * any of the paths searched by resolve_dir_path() (if search_paths is None). """ def _validate(self, val): if isinstance(val, (list, tuple)): for v in val: super()._validate(v) else: super()._validate(val) def _resolve(self, paths): if isinstance(paths, (str, Path)): return super()._resolve(paths) elif isinstance(paths, (list, tuple)): if isinstance(paths, (list, tuple)): return [self._resolve(path) for path in paths] else: name = next(x for x in [self.name, self.label, "Foldernames parameter"] if x) raise ValueError(f"{name} must be a string or a list of strings") return super()._resolve(paths) class load_data(param.ParameterizedFunction): Loading Loading
.pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ repos: - id: end-of-file-fixer - id: sort-simple-yaml - repo: https://github.com/psf/black rev: 24.2.0 rev: 24.3.0 hooks: - id: black args: ['--line-length=119'] Loading
.readthedocs.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ build: os: ubuntu-20.04 tools: python: "mambaforge-4.10" jobs: pre_build: - mkdir ~/tmp sphinx: builder: html Loading
conda.recipe/meta.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ requirements: - dxchange - olefile - pooch - panel<1.3 - param<2 - panel - param - pyvista - holoviews - bokeh Loading
environment.yml +2 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ dependencies: - datashader - hvplot # GUI - panel<1.3 - param<2 - panel - param - pyvista # IO - dxchange Loading
src/imars3d/backend/dataio/data.py +11 −5 Original line number Diff line number Diff line Loading @@ -59,14 +59,20 @@ class Foldernames(param.Foldername): * any of the paths searched by resolve_dir_path() (if search_paths is None). """ def _validate(self, val): if isinstance(val, (list, tuple)): for v in val: super()._validate(v) else: super()._validate(val) def _resolve(self, paths): if isinstance(paths, (str, Path)): return super()._resolve(paths) elif isinstance(paths, (list, tuple)): if isinstance(paths, (list, tuple)): return [self._resolve(path) for path in paths] else: name = next(x for x in [self.name, self.label, "Foldernames parameter"] if x) raise ValueError(f"{name} must be a string or a list of strings") return super()._resolve(paths) class load_data(param.ParameterizedFunction): Loading