Conversation
* add go target to makefile for quick debug run * do not pass data from cli to avoid mistaken return code * return 0 if data or 1 if empty * fixup! return 0 if data or 1 if empty * fix direct python execution, too * explicit error code for None output
* update JOSS paper details and DOI * set JOSS paper as preferred citation * add bibtex links from: doi.org/([^\)]*)\)$ to: doi.org/), [BibTeX](https://doi2bib.org/bib/) * fix indentation for mkdocs * readd abstract and links to cff * add SPARC RPP * readd license to cff * fixup! readd abstract and links to cff
* unpin to allow numpy 2 * lock deps * replace numpy trapz, now trapezoid, with scipy trapezoid * avoid MDSplus fallback for numpy errors * fixup! avoid MDSplus fallback for numpy errors * double getattr for resilience
#523) * Add DataConnection and ProcessConnection ABCs Introduce abstract base classes for the backend abstraction layer. DataConnection defines the per-shot data access interface (get_data, get_data_with_dims, get_dims, cleanup). ProcessConnection defines the per-process factory interface (get_shot_connection, from_config). Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> * Adapt MDSConnection to implement DataConnection ABC ProcessMDSConnection now inherits from ProcessConnection. MDSConnection now inherits from DataConnection. shot_id is a property, get_data/get_data_with_dims/get_dims accept group as alias for tree_name, and get_dims returns tuple instead of list. Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> * Split XarrayConnection into process-level and per-shot classes ProcessXarrayConnection(ProcessConnection) holds config and creates per-shot XarrayDataConnection(DataConnection) instances, replacing the old pattern where get_shot_connection() returned self. Adds get_data_with_dims() and get_dims() to the Xarray backend. cleanup() now closes the DataTree. Backward compat alias preserved. Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> * Update consumers to use DataConnection and ProcessConnection ABCs Migrates all type annotations, imports, and call sites from concrete MDSConnection/XarrayConnection to the ABCs introduced in commits 1-3. MAST physics methods now use the per-shot DataConnection interface (dropping shot_id from call signatures), and get_mdsplus_class() is renamed to get_process_connection() with a deprecated alias. Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> * add shebangs * Address PR #523 review feedback - Drop deprecated aliases (XarrayConnection, get_mdsplus_class) - Restore machine-specific type hints (MDSConnection for EAST, XarrayDataConnection for MAST) - Fix ProcessXarrayConnection.__init__ to initialize attrs before early return - Update XarrayDataConnection.get_data return type annotation to match actual behavior - Update examples/mdsplus.py to use get_process_connection Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> --------- Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> Co-authored-by: Gregorio L. Trevisan <gtrevisan@users.noreply.github.com>
…nd-agnostic DataConnection (#534) * Rename mds_conn to data_conn to reflect backend-agnostic DataConnection ABC Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> * Add docs page for DataConnection/ProcessConnection ABCs Fixes unresolved mkdocs cross-reference to DataConnection introduced in the data_conn rename. The base module had no mkdocstrings block, so autorefs couldn't resolve the link. * really minor whitespace changes * minor docstring and comment changes * minor rename of process variables --------- Signed-off-by: Sameer Chaturvedi <sameerc@mit.edu> Co-authored-by: gtrevisan <gtrevisan@users.noreply.github.com>
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 4 to 5. - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](actions/deploy-pages@v4...v5) --- updated-dependencies: - dependency-name: actions/deploy-pages dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix DummyDatabase.query * add draft of DIII-D rundb pre-fetcher * lower logging to debug * slightly improve readability of df to dict transform * Revert "fix DummyDatabase.query" This reverts commit 09165c8. * write to unique dir, cache to parent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DIII-D
Framework
Documentation
Dependencies