Skip to content

Commit

Permalink
0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JGreenlee committed Jan 17, 2025
1 parent 3c6331d commit bc2effb
Show file tree
Hide file tree
Showing 37 changed files with 509 additions and 7 deletions.
2 changes: 2 additions & 0 deletions emcommon_js/dist/.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions emcommon_js/dist/copy.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function copy(obj: any): any;
export function deepcopy(obj: any): any;
//# sourceMappingURL=copy.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/copy.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions emcommon_js/dist/emcommon.bluetooth.ble_matching.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export { Log };
export function get_ble_sensed_vehicle_for_section(ble_entries: any, start_ts: any, end_ts: any, app_config: any): any;
export function decimal_to_hex_string(n: any, min_length: any): string;
export function get_ble_range_updates_for_section(ble_entries: any, start_ts: any, end_ts: any): any[];
export function get_vehicle_with_ble_beacon(major_minor: any, app_config: any): any;
export function primary_ble_sensed_mode_for_trip(trip: any): any;
import * as Log from './emcommon.logger.js';
//# sourceMappingURL=emcommon.bluetooth.ble_matching.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/emcommon.bluetooth.ble_matching.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions emcommon_js/dist/emcommon.diary.base_modes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
export const mode_colors: {};
export const WALKING_METS: {};
export const BIKING_METS: {};
export const E_BIKING_METS: {};
export const ICEV_WH_PER_KM: number;
export const HEV_WH_PER_KM: number;
export const PHEV_ELEC_WH_PER_KM: number;
export const PHEV_GAS_WH_PER_KM: number;
export const BEV_WH_PER_KM: number;
export const RIDEHAIL_WH_PER_KM: number;
export const AIR_WH_PER_KM: number;
export const E_BIKE_WH_PER_KM: number;
export const BIKESHARE_WH_PER_TRIP: number;
export const SCOOTERSHARE_WH_PER_KM: number;
export const SCOOTERSHARE_WH_PER_TRIP: number;
export const MOPED_WH_PER_KM: number;
export const PHEV_UF: number;
export const AIR_FOOTPRINT: {};
export const CAR_FOOTPRINT: {};
export const E_CAR_FOOTPRINT: {};
export const PHEV_CAR_FOOTPRINT: {};
export const E_BIKE_FOOTPRINT: {};
export const E_SCOOTER_FOOTPRINT: {};
export const BIKESHARE_FOOTPRINT: {};
export const MOPED_FOOTPRINT: {};
export const TAXI_FOOTPRINT: {};
export const BASE_MODES: {};
export function get_base_mode_by_key(motionName: any): any;
export function get_rich_mode_for_value(value: any, label_options: any): any;
export function get_rich_mode(label_option: any): {};
export function scale_lightness(hex_color: any, factor: any): any;
export function dedupe_colors(colors: any, adjustment_range: any): {};
import { mpge_to_wh_per_km } from './emcommon.metrics.footprint.util.js';
import * as Log from './emcommon.logger.js';
export { mpge_to_wh_per_km, Log };
//# sourceMappingURL=emcommon.diary.base_modes.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/emcommon.diary.base_modes.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions emcommon_js/dist/emcommon.diary.util.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export function label_for_trip(composite_trip: any, label_key: any, labels_map: any): any;
export function survey_answered_for_trip(composite_trip: any, labels_map: any): any;
export function primary_inferred_mode_for_trip(trip: any, labels_map: any): any;
export function primary_sensed_mode_for_trip(trip: any): any;
export function primary_mode_for_trip(trip: any, labels_map: any): any;
import * as emcble from './emcommon.bluetooth.ble_matching.js';
import * as Log from './emcommon.logger.js';
export { emcble, Log };
//# sourceMappingURL=emcommon.diary.util.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/emcommon.diary.util.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions emcommon_js/dist/emcommon.logger.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export function debug(...args: any[]): void;
export function info(...args: any[]): void;
export function warn(...args: any[]): void;
export function error(...args: any[]): void;
//# sourceMappingURL=emcommon.logger.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/emcommon.logger.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export function get_mets_mode_map(label_options: any): {};
import * as Log from './emcommon.logger.js';
import { BASE_MODES } from './emcommon.diary.base_modes.js';
export { Log, BASE_MODES };
//# sourceMappingURL=emcommon.metrics.active_travel.active_travel_calculations.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions emcommon_js/dist/emcommon.metrics.footprint.egrid.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export function get_egrid_intensity(year: any, coords: any, region: any, metadata: any): Promise<any>;
export function get_egrid_intensity_for_region(year: any, region: any, metadata: any): Promise<any>;
import * as emcmfu from './emcommon.metrics.footprint.util.js';
import * as Log from './emcommon.logger.js';
export { emcmfu, Log };
//# sourceMappingURL=emcommon.metrics.footprint.egrid.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/emcommon.metrics.footprint.egrid.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export function calc_footprint_for_trip(trip: any, label_options: any, mode_key: any, mode_value: any, labels_map: any): Promise<any>;
export function calc_footprint(mode_footprint: any, distance: any, year: any, coords: any, uace: any, egrid_region: any, passengers: any, metadata: any): Promise<any>;
export const _worst_rich_mode: any;
export const _worst_wh_per_km: number;
export function find_worst_rich_mode(label_options: any): any;
import * as emcdu from './emcommon.diary.util.js';
import * as emcmft from './emcommon.metrics.footprint.transit.js';
import * as emcmfe from './emcommon.metrics.footprint.egrid.js';
import * as emcdb from './emcommon.diary.base_modes.js';
import * as Log from './emcommon.logger.js';
import * as emcmfu from './emcommon.metrics.footprint.util.js';
export { emcdu, emcmft, emcmfe, emcdb, Log, emcmfu };
//# sourceMappingURL=emcommon.metrics.footprint.footprint_calculations.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions emcommon_js/dist/emcommon.metrics.footprint.transit.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const fuel_types: string[];
export function weighted_mean(py_values: any, weights: any): number;
export function get_transit_intensities(year: any, coords: any, uace: any, modes: any, metadata: any): Promise<any>;
export function get_transit_intensities_for_uace(year: any, uace: any, modes: any, metadata: any): any;
import * as util from './emcommon.metrics.footprint.util.js';
import * as Log from './emcommon.logger.js';
export { util, Log };
//# sourceMappingURL=emcommon.metrics.footprint.transit.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions emcommon_js/dist/emcommon.metrics.footprint.util.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export const MI_PER_KM: number;
export const KWH_PER_GGE: number;
export const MPGE_KWH_PER_GAL: number;
export const KWH_PER_GAL_GASOLINE: number;
export const KWH_PER_GAL_DIESEL: number;
export const KWH_PER_GAL_BIODIESEL: number;
export const KWH_PER_GAL_LPG: number;
export const KWH_PER_GAL_CNG: number;
export const KWH_PER_KG_HYDROGEN: number;
export const KWH_PER_GAL_OTHER: number;
export const FUELS_KG_CO2_PER_MWH: {};
export function mpge_to_wh_per_km(mpge: any): number;
export function year_of_trip(trip: any): number;
export function is_point_inside_polygon(pt: any, vs: any): boolean;
export function get_feature_containing_point(pt: any, geojson: any): any;
export const latest_egrid_year: any;
export const latest_ntd_year: any;
export function get_egrid_region(coords: any, year: any): any;
export function get_uace_by_coords(coords: any, year: any): Promise<any>;
export function get_intensities_data(year: any, dataset: any): any;
export function merge_metadatas(meta_a: any, meta_b: any): void;
import { read_json_resource } from './emcommon.util.js';
import { fetch_url } from './emcommon.util.js';
import * as Log from './emcommon.logger.js';
export { read_json_resource, fetch_url, Log };
//# sourceMappingURL=emcommon.metrics.footprint.util.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/emcommon.metrics.footprint.util.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions emcommon_js/dist/emcommon.metrics.metrics_summaries.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export const app_config: any;
export const labels_map: any;
export function generate_summaries(metric_list: any, trips: any, _app_config: any, _labels_map: any): Promise<{}>;
export function value_of_metric_for_trip(metric_name: any, grouping_field: any, grouping_val: any, trip: any): Promise<any>;
export function acc_value_of_metric(metric_name: any, acc: any, new_val: any): any;
export function get_summary_for_metric(metric: any, confirmed_trips: any): Promise<any[]>;
export const grouping_field_fns: {};
export function metric_summary_for_trips(metric: any, confirmed_trips: any): Promise<{}>;
import * as emcble from './emcommon.bluetooth.ble_matching.js';
import * as emcdb from './emcommon.diary.base_modes.js';
import * as emcmfu from './emcommon.metrics.footprint.util.js';
import * as Log from './emcommon.logger.js';
import * as util from './emcommon.util.js';
import * as emcmff from './emcommon.metrics.footprint.footprint_calculations.js';
import * as emcdu from './emcommon.diary.util.js';
import * as emcsc from './emcommon.survey.conditional_surveys.js';
export { emcble, emcdb, emcmfu, Log, util, emcmff, emcdu, emcsc };
//# sourceMappingURL=emcommon.metrics.metrics_summaries.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions emcommon_js/dist/emcommon.survey.conditional_surveys.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export { Log };
export function point_is_within_bounds(pt: any, bounds: any): boolean;
export const conditional_survey_fns: {};
export function scoped_eval(script: any, scope: any): any;
export function get_shows_if_condition(survey: any): any;
export function survey_prompted_for_trip(composite_trip: any, app_config: any): any;
import * as Log from './emcommon.logger.js';
//# sourceMappingURL=emcommon.survey.conditional_surveys.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions emcommon_js/dist/emcommon.util.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export function memoize(fn: any): (...args: any[]) => any;
export function flatten_db_entry(entry: any): any;
export const resources: {};
export function read_json_resource(filename: any): Promise<any>;
export function fetch_url(url: any): Promise<any>;
//# sourceMappingURL=emcommon.util.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/emcommon.util.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions emcommon_js/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export function dict_to_js_obj(py_dict: any): {};
import * as ble_matching from './emcommon.bluetooth.ble_matching.js';
import * as footprint_calculations from './emcommon.metrics.footprint.footprint_calculations.js';
import * as conditional_surveys from './emcommon.survey.conditional_surveys.js';
import * as metrics_summaries from './emcommon.metrics.metrics_summaries.js';
import * as Log from './emcommon.logger.js';
import * as base_modes from './emcommon.diary.base_modes.js';
import * as active_travel_calculations from './emcommon.metrics.active_travel.active_travel_calculations.js';
export { ble_matching, footprint_calculations, conditional_surveys, metrics_summaries, Log, base_modes, active_travel_calculations };
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions emcommon_js/dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bc2effb

Please sign in to comment.