Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VertexField to support field data at vertices #511

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6c010cf
feat(Field): add `VertexField` to support data at vertices
swapneelap Nov 22, 2023
3058da8
feat: [WIP] vertex field and cell field
lang-m Nov 22, 2023
6bbaffd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 22, 2023
41a478a
Move old _as_array to cell_field
lang-m Nov 23, 2023
2af630f
Revert change in html representation to avoid test failures
lang-m Nov 23, 2023
391eddf
Move line to cell_field
lang-m Nov 23, 2023
5417f61
fix: direct creation of subclasses
lang-m Nov 23, 2023
8939836
Implement __call__, line and _as_array for uniform fields
lang-m Nov 23, 2023
e85861d
Merge branch 'master' into vertexfield-subclass
swapneelap Nov 27, 2023
64dcdd2
fix(VertexField,CellField): export VertexField and CellField
swapneelap Nov 27, 2023
8f53395
feat(VertexField): add `to_xarray` method
swapneelap Nov 27, 2023
b170a50
feat(VertexField): get `hv` plot to work
swapneelap Nov 27, 2023
fd7a379
dev: test the `VectorField` functionality
swapneelap Nov 27, 2023
7890e67
feat(VertexField): add functionality to create field using a callable
swapneelap Nov 29, 2023
7ef01db
dev: test `VertexField` functionality with callable
swapneelap Nov 29, 2023
43da142
feat(VertexField): add `_as_array` dispatch to initiate from a field
swapneelap Nov 29, 2023
68265be
Experimental support for reading vti files
lang-m Nov 29, 2023
81139bf
Fix: vti support not added properly
lang-m Nov 29, 2023
97acbe1
remove redundant import
swapneelap Nov 30, 2023
229c23e
remove redundant import
swapneelap Nov 30, 2023
7887bdf
refactor(Field): convert `mpl` to an abstract method
swapneelap Nov 30, 2023
b7ae609
refactor(Field): convert xarray methods to abstract methods
swapneelap Nov 30, 2023
f7c2a2f
refactor(Field): convert `_hv_key_dims` to abstract method
swapneelap Nov 30, 2023
bbcf435
fix(Field): correct abstract method decorators
swapneelap Nov 30, 2023
72d21c8
fix(CellField): remove extra imports
swapneelap Nov 30, 2023
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
796 changes: 796 additions & 0 deletions dev/test-vertex-field.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion discretisedfield/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import matplotlib.pyplot as plt
import pytest

from . import tools
from . import cell_field, tools, vertex_field
from .field import Field
from .field_rotator import FieldRotator
from .interact import interact
Expand Down
Loading
Loading