refactor: refactor kernel dataset into spec
This commit is contained in:
@@ -3,7 +3,7 @@ use anyhow::Result;
|
||||
use lcrconn::{
|
||||
BfsResolver, DeviceKind, LutResolver, Request, Resolver, Response, ResponsePriority,
|
||||
common::{Circuit, CircuitDeviceScale, JointKind, validate_device_value, validate_floating_point},
|
||||
dataset::{DatasetCollection, from_human_readable_value, to_human_readable_value},
|
||||
spec::{SpecCatalog, from_human_readable_value, to_human_readable_value},
|
||||
query::MAX_RESPONSE_CNT,
|
||||
};
|
||||
use std::io::Write;
|
||||
@@ -105,7 +105,7 @@ pub struct App {
|
||||
impl App {
|
||||
/// Create a new app with the given configuration.
|
||||
pub fn new(config: AppConfig) -> Result<Self> {
|
||||
let datasets = DatasetCollection::from_file(
|
||||
let datasets = SpecCatalog::from_file(
|
||||
config.get_resistor_dataset(),
|
||||
config.get_capacitor_dataset(),
|
||||
config.get_inductor_dataset(),
|
||||
|
||||
Reference in New Issue
Block a user