-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
📦 Different exporting types: WebCT and GVXR - Toggle different sections for WebCT export - Show Options for different exporting methods - Easily create master config state object - Framework for custom data loading and exporting - Loaders are able to only partially populate the config - Disable unusable elements for specific exporting types - Download config as a file with download button ☢ GVXR Exporter: - Full gvxr json representation, inc typed classes - Create a gvxr-compatible config object from master config ☢ GVXR Importer: - Added support for importing from GVXR - Parse gvxr config file - Load beam properties - Load tube type - Supports filters - Load specific energy level as a synchrotron source type - Load detector properties (inc lsf) - Load sample properties 🛠 Technical changes: - Move setting and getting paramaters to functions - Change SampleProperties to include nullable materialID and material - Define SamplePropertiesID and SamplePropertiesMat to type specific material format - Add Settings box in config panel - Fix buttongroup by removing prefix icon 😢 - Define WebCTConfig type to manage saving/loading all properties - Spans in checkboxes and switches now include smaller & grey font - Sample update changes: - API now explicitly requires ID materials - Match material contents to existing ID materials - Create a new material if an existing material contents is not found - Automatically use generated new material IDs 🐛 Known Bugs: - Race condition when importing from GVXR when creating new materials (#47) - Current workaround is to refresh and re-import the same config.
- Loading branch information
1 parent
5223e2f
commit 094fb38
Showing
16 changed files
with
1,256 additions
and
232 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { configFull, configSubset } from "../types"; | ||
|
||
// https://stackoverflow.com/questions/43723313/typescript-abstract-class-static-method-not-enforced | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface FormatLoader { | ||
as_config: () => configSubset; | ||
} | ||
|
||
export interface FormatLoaderStatic { | ||
from_config: (config:configFull) => FormatLoader; | ||
from_text: (obj:string) => FormatLoader; | ||
can_parse: (text:string) => boolean; | ||
} |
Oops, something went wrong.