Commit 9137a27b by dongshufeng

put common function in ds-common

parent 22288392
pub mod dyn_topo;
pub mod static_topo;
const STATIC_TOPO_DF_NAME: &str = "static_topo";
const TERMINAL_DF_NAME: &str = "terminal_cn_dev";
const POINT_DF_NAME: &str = "point_terminal_phase";
pub const STATIC_TOPO_DF_NAME: &str = "static_topo";
pub const TERMINAL_DF_NAME: &str = "terminal_cn_dev";
pub const POINT_DF_NAME: &str = "point_terminal_phase";
pub const DYN_TOPO_DF_NAME: &str = "dyn_topo";
pub const DEV_TOPO_DF_NAME: &str = "dev_topo";
pub const DEV_CONDUCTOR_DF_NAME: &str = "dev_ohm";
......
......@@ -2,10 +2,10 @@ use std::collections::HashMap;
use arrow_schema::{DataType, Field, Schema};
use ds_common::{DEV_TOPO_DF_NAME, DYN_TOPO_DF_NAME, POINT_DF_NAME, STATIC_TOPO_DF_NAME, TERMINAL_DF_NAME};
use ds_common::static_topo::{read_edges, read_points, read_terminals};
use eig_domain::DataUnit;
use mems::model::{get_df_from_in_plugin, get_meas_from_plugin_input, get_wasm_result, ModelType, PluginInput, PluginOutput};
use ds_common::static_topo::{read_edges, read_points, read_terminals};
#[no_mangle]
pub unsafe fn run(ptr: i32, len: u32) -> u64 {
......
use arrow_schema::{DataType, Field, Schema};
use ds_common::{DEV_TOPO_DF_NAME, DYN_TOPO_DF_NAME};
use ds_common::dyn_topo::{read_dev_topo, read_dyn_topo};
use mems::model::{get_meas_from_plugin_input, get_wasm_result, PluginInput, PluginOutput};
#[no_mangle]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论