1pub const VERSION: &str = env!("CARGO_PKG_VERSION");
44
45mod collect;
46pub mod dc;
47pub mod diagnostics;
48pub mod error;
49pub mod format;
50pub mod gen_cost;
51pub mod geo;
52pub mod indexed;
53pub mod network;
54mod normalize;
55mod operations;
56pub mod solver_tables;
57pub mod version;
58
59pub use dc::{DcConvention, DcNetworkData, dc_network_data};
60pub use diagnostics::{Diagnostic, DiagnosticCode, DiagnosticSeverity, EmitFamily};
61pub use error::{Error, ErrorCategory, Result};
62pub use format::routing::{
63 Detection, JSON_CLASSES, JsonClass, classify_json_bytes, classify_json_text,
64};
65#[cfg(test)]
66pub(crate) use format::test_parse::{parse_file, parse_str};
67pub use format::{
68 Conversion, DisplayData, DisplayFormat, OpfDataSolution, PwdDisplay, PwdSubstation,
69 PypsaCsvOutputs, PypsaCsvSequence, SOURCE_FORMAT_NAMES, TargetFormat, WriteOptions,
70 convert_file, convert_file_with_options, convert_str, convert_str_with_options,
71 display_format_from_name, format_id_for, parse, parse_display_bytes, parse_display_file,
72 parse_egret_time_series, parse_goc3_json, parse_opfdata_json, parse_pypsa_csv_time_series,
73 target_format_from_name, write, write_as, write_as_with_options, write_dir,
74 write_dir_with_options, write_egret_json, write_matpower, write_network, write_pandapower_json,
75 write_powermodels_json, write_powerworld, write_pslf, write_psse, write_psse_rev,
76 write_pypsa_csv, write_pypsa_csv_folder, write_surge_json, write_with_options,
77};
78pub use gen_cost::{GenCostPatch, GenCostPolicyReport, MissingGenCostPolicy, parse_gen_cost_csv};
79pub use geo::{
80 Canvas, CoordinateSpace, CoordsKind, ElementKey, GeoApplyReport, GeoFeature, GeoGeometry,
81 GeoLayer, GeoMeta, GeoParsed, GeoTarget, Location, apply_substation_points,
82 geo_layer_from_aux_substations, geo_layer_from_pwd, pwd_mercator_to_lonlat,
83};
84pub use indexed::{ConnectivityReport, IndexCore, IndexedNetwork};
85pub use network::{
86 Area, BalancedNetwork, Branch, BranchCharging, BranchCurrentRatings, BranchRatingSet,
87 BranchSolution, Bus, BusId, BusType, DEFAULT_BASE_FREQUENCY, Extras, GenCaps, GenCost,
88 Generator, Hvdc, Impedance, Load, LoadVoltageModel, Shunt, ShuntBlock, SolverParams,
89 SourceFormat, Storage, Switch, SwitchedShuntControl, SwitchedShuntMode, Transformer3W,
90 TransformerControl, TransformerControlMode, Winding, repair_values, series_admittance_of,
91};
92pub use normalize::{
93 NormalizeOptions, NormalizeSourceRows, NormalizedNetwork, POWER_MODELS_ANGLE_BOUND_PAD,
94};
95pub use operations::Selector;
96
97pub use solver_tables::{
98 NORMALIZED_SOLVER_TABLES_PASS, NormalizedSolverTables, SolverArcRow, SolverArcTerminal,
99 SolverBranchRow, SolverBusRow, SolverCostRow, SolverGeneratorRow, SolverHvdcRow, SolverLoadRow,
100 SolverShuntRow, SolverStorageRow, SolverSwitchRow, SolverTableIndex, SolverTableUnits,
101};