nova-trame 1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. nova_trame-1.2.1/.copier-answers.yml +8 -0
  2. nova_trame-1.2.1/.dockerignore +1 -0
  3. nova_trame-1.2.1/.github/workflows/build-test.yml +49 -0
  4. nova_trame-1.2.1/.github/workflows/nova-trame.yml +62 -0
  5. nova_trame-1.2.1/.gitignore +168 -0
  6. nova_trame-1.2.1/.pre-commit-config.yaml +27 -0
  7. nova_trame-1.2.1/.readthedocs.yml +39 -0
  8. nova_trame-1.2.1/.vscode/extensions.json +6 -0
  9. nova_trame-1.2.1/.vscode/launch.json +10 -0
  10. nova_trame-1.2.1/.vscode/settings.json +14 -0
  11. nova_trame-1.2.1/CHANGELOG.md +146 -0
  12. nova_trame-1.2.1/CODE_OF_CONDUCT.md +128 -0
  13. nova_trame-1.2.1/CONTRIBUTING.md +38 -0
  14. nova_trame-1.2.1/DEVELOPMENT.md +87 -0
  15. nova_trame-1.2.1/LICENSE +21 -0
  16. nova_trame-1.2.1/PKG-INFO +51 -0
  17. nova_trame-1.2.1/README.md +21 -0
  18. nova_trame-1.2.1/build_docs.sh +1 -0
  19. nova_trame-1.2.1/dockerfiles/Dockerfile +36 -0
  20. nova_trame-1.2.1/docs/api.rst +107 -0
  21. nova_trame-1.2.1/docs/assets/example_layouts/grid_boxes.png +0 -0
  22. nova_trame-1.2.1/docs/assets/example_layouts/hbox_vbox.png +0 -0
  23. nova_trame-1.2.1/docs/assets/example_layouts/spans.png +0 -0
  24. nova_trame-1.2.1/docs/assets/example_layouts/vbox_hbox.png +0 -0
  25. nova_trame-1.2.1/docs/assets/example_layouts/whitespace.png +0 -0
  26. nova_trame-1.2.1/docs/assets/layout.png +0 -0
  27. nova_trame-1.2.1/docs/conf.py +35 -0
  28. nova_trame-1.2.1/docs/example_layouts.rst +82 -0
  29. nova_trame-1.2.1/docs/getting_started.rst +47 -0
  30. nova_trame-1.2.1/docs/helpful_links.rst +10 -0
  31. nova_trame-1.2.1/docs/index.rst +25 -0
  32. nova_trame-1.2.1/docs/visualization.rst +25 -0
  33. nova_trame-1.2.1/docs/working_with_trame.rst +125 -0
  34. nova_trame-1.2.1/pixi.lock +2952 -0
  35. nova_trame-1.2.1/pyproject.toml +127 -0
  36. nova_trame-1.2.1/scripts/.gitkeep +0 -0
  37. nova_trame-1.2.1/src/nova/__init__.py +1 -0
  38. nova_trame-1.2.1/src/nova/trame/__init__.py +3 -0
  39. nova_trame-1.2.1/src/nova/trame/_internal/utils.py +37 -0
  40. nova_trame-1.2.1/src/nova/trame/model/data_selector.py +125 -0
  41. nova_trame-1.2.1/src/nova/trame/model/ornl/analysis_data_selector.py +217 -0
  42. nova_trame-1.2.1/src/nova/trame/model/ornl/neutron_data_selector.py +63 -0
  43. nova_trame-1.2.1/src/nova/trame/model/ornl/oncat_data_selector.py +143 -0
  44. nova_trame-1.2.1/src/nova/trame/model/remote_file_input.py +131 -0
  45. nova_trame-1.2.1/src/nova/trame/utils/types.py +44 -0
  46. nova_trame-1.2.1/src/nova/trame/view/components/__init__.py +17 -0
  47. nova_trame-1.2.1/src/nova/trame/view/components/data_selector.py +361 -0
  48. nova_trame-1.2.1/src/nova/trame/view/components/execution_buttons.py +126 -0
  49. nova_trame-1.2.1/src/nova/trame/view/components/file_upload.py +118 -0
  50. nova_trame-1.2.1/src/nova/trame/view/components/input_field.py +402 -0
  51. nova_trame-1.2.1/src/nova/trame/view/components/ornl/__init__.py +3 -0
  52. nova_trame-1.2.1/src/nova/trame/view/components/ornl/neutron_data_selector.py +368 -0
  53. nova_trame-1.2.1/src/nova/trame/view/components/progress_bar.py +88 -0
  54. nova_trame-1.2.1/src/nova/trame/view/components/remote_file_input.py +319 -0
  55. nova_trame-1.2.1/src/nova/trame/view/components/tool_outputs.py +62 -0
  56. nova_trame-1.2.1/src/nova/trame/view/components/visualization/__init__.py +4 -0
  57. nova_trame-1.2.1/src/nova/trame/view/components/visualization/interactive_2d_plot.py +87 -0
  58. nova_trame-1.2.1/src/nova/trame/view/components/visualization/matplotlib_figure.py +386 -0
  59. nova_trame-1.2.1/src/nova/trame/view/layouts/__init__.py +5 -0
  60. nova_trame-1.2.1/src/nova/trame/view/layouts/grid.py +178 -0
  61. nova_trame-1.2.1/src/nova/trame/view/layouts/hbox.py +112 -0
  62. nova_trame-1.2.1/src/nova/trame/view/layouts/utils.py +16 -0
  63. nova_trame-1.2.1/src/nova/trame/view/layouts/vbox.py +112 -0
  64. nova_trame-1.2.1/src/nova/trame/view/theme/__init__.py +3 -0
  65. nova_trame-1.2.1/src/nova/trame/view/theme/assets/core_style.scss +294 -0
  66. nova_trame-1.2.1/src/nova/trame/view/theme/assets/favicon.png +0 -0
  67. nova_trame-1.2.1/src/nova/trame/view/theme/assets/js/delay_manager.js +30 -0
  68. nova_trame-1.2.1/src/nova/trame/view/theme/assets/js/lodash.min.js +140 -0
  69. nova_trame-1.2.1/src/nova/trame/view/theme/assets/js/revo_grid.js +173 -0
  70. nova_trame-1.2.1/src/nova/trame/view/theme/assets/vuetify_config.json +206 -0
  71. nova_trame-1.2.1/src/nova/trame/view/theme/exit_button.py +87 -0
  72. nova_trame-1.2.1/src/nova/trame/view/theme/theme.py +332 -0
  73. nova_trame-1.2.1/src/nova/trame/view/utilities/local_storage.py +102 -0
  74. nova_trame-1.2.1/src/nova/trame/view_model/data_selector.py +85 -0
  75. nova_trame-1.2.1/src/nova/trame/view_model/execution_buttons.py +87 -0
  76. nova_trame-1.2.1/src/nova/trame/view_model/ornl/neutron_data_selector.py +47 -0
  77. nova_trame-1.2.1/src/nova/trame/view_model/progress_bar.py +82 -0
  78. nova_trame-1.2.1/src/nova/trame/view_model/remote_file_input.py +102 -0
  79. nova_trame-1.2.1/src/nova/trame/view_model/tool_outputs.py +23 -0
  80. nova_trame-1.2.1/tests/__init__.py +0 -0
  81. nova_trame-1.2.1/tests/conftest.py +36 -0
  82. nova_trame-1.2.1/tests/gallery/.gitignore +1 -0
  83. nova_trame-1.2.1/tests/gallery/__init__.py +4 -0
  84. nova_trame-1.2.1/tests/gallery/__main__.py +5 -0
  85. nova_trame-1.2.1/tests/gallery/main.py +21 -0
  86. nova_trame-1.2.1/tests/gallery/models/__init__.py +0 -0
  87. nova_trame-1.2.1/tests/gallery/models/data_selector.py +19 -0
  88. nova_trame-1.2.1/tests/gallery/models/file_upload.py +13 -0
  89. nova_trame-1.2.1/tests/gallery/models/neutron_data_selector.py +26 -0
  90. nova_trame-1.2.1/tests/gallery/view_models/__init__.py +0 -0
  91. nova_trame-1.2.1/tests/gallery/view_models/data_selector.py +23 -0
  92. nova_trame-1.2.1/tests/gallery/view_models/file_upload.py +21 -0
  93. nova_trame-1.2.1/tests/gallery/view_models/neutron_data_selector.py +29 -0
  94. nova_trame-1.2.1/tests/gallery/views/__init__.py +0 -0
  95. nova_trame-1.2.1/tests/gallery/views/app.py +619 -0
  96. nova_trame-1.2.1/tests/gallery/vuetify_config.json.example +10 -0
  97. nova_trame-1.2.1/tests/test_data_selector.py +68 -0
  98. nova_trame-1.2.1/tests/test_file_upload.py +25 -0
  99. nova_trame-1.2.1/tests/test_gallery.py +8 -0
  100. nova_trame-1.2.1/tests/test_input_field.py +196 -0
  101. nova_trame-1.2.1/tests/test_interactive_2d_plot.py +45 -0
  102. nova_trame-1.2.1/tests/test_interface.py +11 -0
  103. nova_trame-1.2.1/tests/test_layouts.py +57 -0
  104. nova_trame-1.2.1/tests/test_local_storage.py +21 -0
  105. nova_trame-1.2.1/tests/test_matplotlib.py +21 -0
  106. nova_trame-1.2.1/tests/test_neutron_data_selector.py +93 -0
  107. nova_trame-1.2.1/tests/test_remote_file_input.py +59 -0
  108. nova_trame-1.2.1/tests/test_theme.py +39 -0
  109. nova_trame-1.2.1/tests/test_tool_components.py +27 -0
@@ -0,0 +1,8 @@
1
+ # Please do not edit or delete this file. It is needed to be able to update project from template.
2
+ _commit: '0.10'
3
+ _src_path: https://code.ornl.gov/ndip/project-templates/python.git
4
+ project_name: nova-trame
5
+ publish_docs: true
6
+ publish_to_pypi: true
7
+ python_package: nova-trame
8
+ use_mantid: false
@@ -0,0 +1 @@
1
+ dockerfiles/Dockerfile
@@ -0,0 +1,49 @@
1
+ name: Build and Test
2
+
3
+ on: push
4
+
5
+ concurrency:
6
+ group: "${{ github.ref }}"
7
+ cancel-in-progress: true
8
+
9
+ env:
10
+ NDIP_DOCKER_REPOSITORY: "${{ secrets.NDIP_DOCKER_REPOSITORY }}"
11
+ READTHEDOCS_WEBHOOK_URL: "${{ secrets.READTHEDOCS_WEBHOOK_URL }}"
12
+ READTHEDOCS_WEBHOOK_SECRET: "${{ secrets.READTHEDOCS_WEBHOOK_SECRET }}"
13
+
14
+ jobs:
15
+ build-and-test:
16
+ runs-on: ubuntu-latest
17
+ timeout-minutes: 60
18
+ env:
19
+ GIT_STRATEGY: clone
20
+ IMAGE_NAME: "${NDIP_DOCKER_REPOSITORY}/${{ github.repository }}"
21
+ steps:
22
+ - name: Set up QEMU
23
+ uses: docker/setup-qemu-action@v3
24
+ - name: Set up Docker Buildx
25
+ uses: docker/setup-buildx-action@v3
26
+ - name: Checkout repo
27
+ uses: actions/checkout@v4
28
+ with:
29
+ fetch-depth: 20
30
+ lfs: true
31
+ - name: Build
32
+ uses: docker/build-push-action@v6
33
+ id: build
34
+ with:
35
+ file: dockerfiles/Dockerfile
36
+ load: true
37
+ target: source
38
+ - name: Run ruff check
39
+ run: docker run --rm ${{ steps.build.outputs.imageid }} ruff check
40
+ - name: Run format check
41
+ run: docker run --rm ${{ steps.build.outputs.imageid }} ruff format --check
42
+ - name: Run mypy
43
+ run: docker run --rm ${{ steps.build.outputs.imageid }} mypy .
44
+ - name: Unit tests
45
+ run: docker run --rm ${{ steps.build.outputs.imageid }} pytest
46
+ - name: Run coverage
47
+ run: docker run --rm ${{ steps.build.outputs.imageid }} sh -c "coverage run && coverage report"
48
+ - name: Docs test
49
+ run: docker run --rm ${{ steps.build.outputs.imageid }} bash build_docs.sh
@@ -0,0 +1,62 @@
1
+ name: Publish Package
2
+
3
+ on: workflow_dispatch
4
+
5
+ concurrency:
6
+ group: "${{ github.ref }}"
7
+ cancel-in-progress: true
8
+
9
+ env:
10
+ PYPI_API_TOKEN: "${{ secrets.PYPI_API_TOKEN }}"
11
+
12
+ jobs:
13
+ tag-release:
14
+ runs-on: ubuntu-latest
15
+ timeout-minutes: 60
16
+ permissions: write-all
17
+ env:
18
+ GIT_STRATEGY: clone
19
+ IMAGE_NAME: "${NDIP_DOCKER_REPOSITORY}/${{ github.repository }}"
20
+ steps:
21
+ - name: Checkout repo
22
+ uses: actions/checkout@v4
23
+ with:
24
+ fetch-depth: 20
25
+ lfs: true
26
+ - name: Parse version
27
+ run: echo "VERSION=$(cat pyproject.toml | grep "version =" | head -n 1 | awk '{ print $3 }' | tr -d '"')" >> $GITHUB_ENV
28
+ - name: Create release
29
+ uses: actions/create-release@v1
30
+ env:
31
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
+ with:
33
+ tag_name: ${{ env.VERSION }}
34
+ release_name: ${{ env.VERSION }}
35
+
36
+ publish-package:
37
+ needs: tag-release
38
+ runs-on: ubuntu-latest
39
+ if: github.event_name == 'workflow_dispatch'
40
+ timeout-minutes: 60
41
+ env:
42
+ GIT_STRATEGY: clone
43
+ IMAGE_NAME: "${NDIP_DOCKER_REPOSITORY}/${{ github.repository }}"
44
+ steps:
45
+ - name: Set up QEMU
46
+ uses: docker/setup-qemu-action@v3
47
+ - name: Set up Docker Buildx
48
+ uses: docker/setup-buildx-action@v3
49
+ - name: Checkout repo
50
+ uses: actions/checkout@v4
51
+ with:
52
+ fetch-depth: 20
53
+ lfs: true
54
+ - name: Build
55
+ uses: docker/build-push-action@v6
56
+ id: build
57
+ with:
58
+ file: dockerfiles/Dockerfile
59
+ load: true
60
+ target: package
61
+ - name: Publish
62
+ run: docker run --rm ${{ steps.build.outputs.imageid }} sh -c "hatch build && hatch publish -u __token__ -a ${PYPI_API_TOKEN}"
@@ -0,0 +1,168 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # We ingore the whole .idea folder
157
+ # For more fine tuning, JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159
+ # and can be added to the global gitignore or merged into this file.
160
+ .idea
161
+
162
+
163
+ .envrc
164
+
165
+
166
+ junit.xml
167
+
168
+ .pixi
@@ -0,0 +1,27 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.6.0
4
+ hooks:
5
+ - id: check-added-large-files
6
+ args: [--maxkb=8192]
7
+ - id: check-merge-conflict
8
+ - id: check-yaml
9
+ args: [--allow-multiple-documents]
10
+ - id: end-of-file-fixer
11
+ - id: check-toml
12
+ - id: trailing-whitespace
13
+ - repo: https://github.com/astral-sh/ruff-pre-commit
14
+ rev: v0.6.2
15
+ hooks:
16
+ - id: ruff
17
+ args: [--fix, --exit-non-zero-on-fix]
18
+ - id: ruff-format
19
+ - repo: local
20
+ hooks:
21
+ - id: mypy
22
+ name: mypy
23
+ entry: pixi run mypy .
24
+ language: system
25
+ types: [python]
26
+ verbose: true
27
+ pass_filenames: false
@@ -0,0 +1,39 @@
1
+ # Read the Docs configuration file for Sphinx projects
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version and other tools you might need
8
+ build:
9
+ os: ubuntu-22.04
10
+ tools:
11
+ python: "3.12"
12
+ # You can also specify other tool versions:
13
+ # nodejs: "20"
14
+ # rust: "1.70"
15
+ # golang: "1.20"
16
+ jobs:
17
+ post_create_environment:
18
+ - pip install altair sphinx-rtd-theme==3.0.2 tomli
19
+ - pip install .
20
+
21
+ # Build documentation in the "docs/" directory with Sphinx
22
+ sphinx:
23
+ configuration: docs/conf.py
24
+ # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
25
+ # builder: "dirhtml"
26
+ # Fail on all warnings to avoid broken references
27
+ # fail_on_warning: true
28
+
29
+ # Optionally build your docs in additional formats such as PDF and ePub
30
+ # formats:
31
+ # - pdf
32
+ # - epub
33
+
34
+ # Optional but recommended, declare the Python requirements required
35
+ # to build your documentation
36
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
37
+ # python:
38
+ # install:
39
+ # - requirements: docs/requirements.txt
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "charliermarsh.ruff",
4
+ "ms-python.mypy-type-checker"
5
+ ]
6
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "configurations": [{
3
+ "name": "Launch",
4
+ "type": "debugpy",
5
+ "request": "launch",
6
+ "cwd": "${workspaceFolder}",
7
+ "module": "tests.gallery",
8
+ "args": ["--server"]
9
+ }]
10
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "[python]": {
3
+ "editor.defaultFormatter": "charliermarsh.ruff"
4
+ },
5
+ "[restructuredtext]": {
6
+ "editor.wordWrap": "wordWrapColumn",
7
+ "editor.wordWrapColumn": 120
8
+ },
9
+ "python.testing.pytestArgs": [
10
+ "tests"
11
+ ],
12
+ "python.testing.unittestEnabled": false,
13
+ "python.testing.pytestEnabled": true
14
+ }
@@ -0,0 +1,146 @@
1
+ ### nova-trame, 1.2.1
2
+
3
+ * Fixes a vertical alignment issue with NeutronDataSelector when the component is placed in a relatively low-width container (thanks to John Duggan).
4
+
5
+ ### nova-trame, 1.2.0
6
+
7
+ * Adds a show_experiment_filters parameter to NeutronDataSelector to allow hiding the facility/instrument/experiment selection widgets (thanks to John Duggan).
8
+ * The DataSelector user interface has been reworked to provide more consistent visual alignment of content (thanks to John Duggan).
9
+
10
+ ### nova-trame, 1.1.1
11
+
12
+ * Passing an items parameter to InputField(type="radio") now generates a correct radio button group (thanks to John Duggan).
13
+
14
+ ### nova-trame, 1.1.0
15
+
16
+ * Sort and filtering capabilities have been added to the DataSelector (thanks to John Duggan).
17
+ * Added a parameter to NeutronDataSelector to preserve selected files when changing the facility, instrument, or experiment (thanks to John Duggan).
18
+ * The v_show parameter should now be functional when used on GridLayout, HBoxLayout, and VBoxLayout (thanks to John Duggan).
19
+
20
+ ### nova-trame, 1.0.1
21
+
22
+ * Exit button now attempts to close the browser tab and will be visually consistent across all themes now (thanks to John Duggan).
23
+
24
+ ### nova-trame, 1.0.0
25
+
26
+ * Adds a stretch parameter to GridLayout, HBoxLayout, and VBoxLayout and overhauls how the main content slot works (thanks to John Duggan).
27
+ * This is tagged to version 1.0.0 as we are going to begin considering backwards compatibility with all future changes.
28
+
29
+ ### nova-trame, 0.27.0
30
+
31
+ * DataSelector and NeutronDataSelector support range selection via Shift+Click (thanks to John Duggan).
32
+
33
+ ### nova-trame, 0.26.2
34
+
35
+ * Improved the error message when a developer uses the removed NeutronDataSelector.set_state method (thanks to John Duggan).
36
+
37
+ ### nova-trame, 0.26.1
38
+
39
+ * Added use_bytes parameter to FileUpload and RemoteFileInput for handling binary files that are not stored on the server (thanks to John Duggan).
40
+
41
+ ### nova-trame, 0.26.0
42
+
43
+ * Added data_source and projection parameters to NeutronDataSelector to allow populating data files from ONCat (thanks to Andrew Ayres and John Duggan).
44
+
45
+ ### nova-trame, 0.25.5
46
+
47
+ * NeutronDataSelector will no longer show duplicates of a file that matches multiple extensions (thanks to John Duggan).
48
+
49
+ ### nova-trame, 0.25.4
50
+
51
+ * InputField, FileUpload, and RemoteFileInput should support parameter bindings now (thanks to John Duggan).
52
+
53
+ ### nova-trame, 0.25.3
54
+
55
+ * Clearing NeutronDataSelector file selections will no longer send null/None values to the state (thanks to John Duggan).
56
+
57
+ ### nova-trame, 0.25.2
58
+
59
+ * NeutronDataSelector should now reset its state properly when changing the instrument or experiment (thanks to John Duggan).
60
+
61
+ ### nova-trame, 0.25.1
62
+
63
+ * ExecutionButtons now supports binding to stop_btn and download_btn parameters (thanks to John Duggan).
64
+
65
+ ### nova-trame, 0.25.0
66
+
67
+ * FileUpload now supports a return_contents parameter (thanks to John Duggan).
68
+
69
+ ### nova-trame, 0.24.1
70
+
71
+ * Fixed literalinclude paths in the documentation (thanks to John Duggan).
72
+
73
+ ### nova-trame, 0.24.0
74
+
75
+ * Parameters to DataSelector and NeutronDataSelector should now support bindings (thanks to John Duggan).
76
+
77
+ ### nova-trame, 0.23.1
78
+
79
+ * Added support for refreshing the file list in DataSelector and its subclasses (thanks to Yuanpeng Zhang and John Duggan).
80
+
81
+ ### nova-trame, 0.23.0
82
+
83
+ * The existing DataSelector component has been renamed to NeutronDataSelector and moved to nova.trame.view.components.ornl.NeutronDataSelector (thanks to John Duggan).
84
+
85
+ ### nova-trame, 0.22.1
86
+
87
+ * ThemedApp now has an Exit Button by default which closes the application and can stop any running jobs (thanks to Gregory Cage).
88
+
89
+ ### nova-trame, 0.22.0
90
+
91
+ * DataSelector queries subdirectories on demand, which should improve performance for large directory trees (thanks to John Duggan).
92
+
93
+ ### nova-trame, 0.21.0
94
+
95
+ * ProgressBar component now displays detailed job status (thanks to Sergey Yakubov).
96
+
97
+ ### nova-trame, 0.20.5
98
+
99
+ * DataSelector should now properly display files at the root of the selected directory (thanks to John Duggan).
100
+
101
+ ### nova-trame, 0.20.4
102
+
103
+ * The Tornado dependency is now pinned to >=6.5 to address a DoS vulnerability (thanks to John Duggan).
104
+
105
+ ### nova-trame, 0.20.3
106
+
107
+ * Performance of the DataSelector for large numbers of files should be improved (thanks to John Duggan).
108
+
109
+ ### nova-trame, 0.20.2
110
+
111
+ * Matplotlib figure will no longer raise a TypeError when running on Python >= 3.11 (thanks to John Duggan).
112
+
113
+ ### nova-trame, 0.20.1
114
+
115
+ * DataSelector now supports a `show_user_directories` flag that will allow users to choose datafiles from user directories (thanks to John Duggan).
116
+
117
+ ### nova-trame, 0.20.0
118
+
119
+ * Three new components are available: ExecutionButtons, ProgressBar, and ToolOutputWindows. These components allow you to quickly add widgets to your UI for running and monitoring jobs (thanks to Sergey Yakubov).
120
+
121
+ ### nova-trame, 0.19.2
122
+
123
+ * InputFields using type=autoscroll now work with nested state variables (thanks to John Duggan).
124
+
125
+ ### nova-trame, 0.19.1
126
+
127
+ * DataSelector now has an additional parameter `extensions` for restricting the selectable datafiles to a list of file extensions (thanks to John Duggan).
128
+
129
+ ### nova-trame, 0.19.0
130
+
131
+ * You can now use `nova.trame.view.components.DataSelector` to allow the user to select a list of data files from the analysis cluster (thanks to John Duggan).
132
+
133
+ ### nova-trame, 0.18.2
134
+
135
+ * Passing a string to the style parameter to GridLayout, HBoxLayout, and VBoxLayout will no longer cause Trame to crash (thanks to John Duggan).
136
+ * WebAgg-based Matplotlib figures are no longer automatically scrolled to on page load (thanks to John Duggan).
137
+ * RemoteFileInput will no longer attempt to navigate to another directory after the filtering text field loses focus. The compact UI for this widget has also been updated (thanks to John Duggan).
138
+
139
+ ### nova-trame, 0.18.1
140
+
141
+ * The `CompactTheme` has been overhauled and should produce denser UIs (thanks to Kristin Maroun).
142
+
143
+ ### nova-trame, 0.18.0
144
+
145
+ * You can now use `nova.trame.view.components.FileUpload` to allow the user to upload a file from their computer or pick a file off of the analysis cluster (thanks to John Duggan).
146
+ * Content placed in the `post_content` slot will now stick to the bottom of the main `content` slot instead of sticking to the bottom of the page (thanks to John Duggan).
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socioeconomic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ watsongr@ornl.gov.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.