diffai_core/parsers/numpy.rs
1use anyhow::Result;
2use serde_json::Value;
3use std::path::Path;
4
5/// Parse NumPy file - FOR INTERNAL USE ONLY (diffai-specific)
6pub fn parse_numpy_file(path: &Path) -> Result<Value> {
7 // Simplified numpy file parsing
8 let mut result = serde_json::Map::new();
9 result.insert("model_type".to_string(), Value::String("numpy".to_string()));
10 result.insert(
11 "file_path".to_string(),
12 Value::String(path.to_string_lossy().to_string()),
13 );
14
15 Ok(Value::Object(result))
16}