Skip to content

Commit e842bca

Browse files
authored
Merge pull request #7 from z3rone-org/feature/missing-features
### Changes * **Added Metadata Access:** Exposed missing CommonCore properties across C#, Rust, and Python layers, including File/Run Headers, Sample Information, Error Logs, Scan Filters, Scan Events, Scan Dependents, Scan Stats, and Sequence Info. * **Context Manager:** Added `with`-block support to `RawFile` for safer resource cleanup. * **Enum Parity:** Aligned Python enums with C# counterparts and added tests to verify consistency. * **Error Handling:** Added native C# try/catch blocks with fallback values to prevent abrupt NativeAOT crashes. Fixed a `ModuleNotFoundError` by removing an unused `exceptiongroup` import. * **Localization:** Standardized date formatting and parsing to prevent culture-specific errors. * **Code Formatting:** Added a C# `.editorconfig` to enforce formatting and resolved Python linting errors. * **Test Coverage:** Added 3 new RAW files (`MTBLS773_UV.raw`, `PXD006873_prec_range.raw`, `small.RAW`) and 11 new test scripts to validate the newly exposed data structures.
2 parents d51c420 + 3f33820 commit e842bca

25 files changed

Lines changed: 3963 additions & 770 deletions

native/.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*.cs]
4+
# Disable preserving single-line blocks and statements
5+
csharp_preserve_single_line_blocks = false
6+
csharp_preserve_single_line_statements = false
7+
8+
# Newline settings for braces
9+
csharp_new_line_before_open_brace = all
10+
csharp_new_line_before_catch = true
11+
csharp_new_line_before_else = true
12+
csharp_new_line_before_finally = true
13+
14+
# General formatting
15+
insert_final_newline = true
16+
indent_style = space
17+
indent_size = 4

native/ThermoNativeReader/NativeApi.cs

Lines changed: 2373 additions & 532 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)