Skip to content

Commit 4ac9e1d

Browse files
authored
Merge pull request #86 from sagitiminsky/change_radius_to_link_instead_of_gaugue
added files for links which are nearby gauges and made changed filter
2 parents e395f62 + 81413c9 commit 4ac9e1d

File tree

3,371 files changed

+2107784
-18634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,371 files changed

+2107784
-18634
lines changed

CellEnMon/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ def add_days_to_date(date, delta_days=0):
3333

3434
#09062011_13082011 dutch
3535
#01012013_01022013 israel
36-
smoothing_dme=4
36+
smoothing_dme=1
3737
smoothing_ims="xx" # not used yet
3838

39-
RADIUS=15
39+
RADIUS=50
4040

4141
export_type="dutch"
4242
date = {

CellEnMon/data/cellenmon_dataset.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import numpy as np
1919
from math import radians, cos, sin, asin, sqrt
2020
import torch.nn.functional as F
21+
from datetime import datetime
22+
import config
2123

2224
# from data.image_folder import make_dataset
2325
# from PIL import Image
@@ -169,7 +171,7 @@ def __getitem__(self, index):
169171

170172
if time_stamp_A_start_time[:13] in [x[:13] for x in data_dict_B['data']]: # x[:13] is: dd-mm-yyyy hh
171173
for l in data_dict_B['data'].keys():
172-
if l.startswith(time_stamp_A_start_time[:13]):
174+
if l.startswith(time_stamp_A_start_time[:13]) and config.RADOIS >= dist:
173175
slice_start_B=list(data_dict_B['data'].keys()).index(l)
174176
break
175177

CellEnMon/data/exporter.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,13 @@ def load_dme(self, is_train=False):
307307
df = pd.read_csv(f"{config.dme_root_files}/raw/{link_file_name}")
308308
if 'PowerTLTMmax[dBm]' in df and 'PowerTLTMmin[dBm]' in df and 'PowerRLTMmax[dBm]' in df and 'PowerRLTMmax[dBm]' in df:
309309

310-
PowerTLTMmax = self.smoothing(np.array(df[~df["PowerTLTMmax[dBm]"].isnull()]["PowerTLTMmax[dBm]"].astype(float)),n=smoothing_n)
310+
PowerTLTMmax = np.array(df[~df["PowerTLTMmax[dBm]"].isnull()]["PowerTLTMmax[dBm]"].astype(float))
311311

312-
PowerTLTMmin = self.smoothing(np.array(df[~df["PowerTLTMmin[dBm]"].isnull()]["PowerTLTMmin[dBm]"].astype(float)), n=smoothing_n)
312+
PowerTLTMmin = np.array(df[~df["PowerTLTMmin[dBm]"].isnull()]["PowerTLTMmin[dBm]"].astype(float))
313313

314-
PowerRLTMmax = self.smoothing(np.array(df[~df["PowerRLTMmax[dBm]"].isnull()]["PowerRLTMmax[dBm]"].astype(float)), n=smoothing_n)
314+
PowerRLTMmax = np.array(df[~df["PowerRLTMmax[dBm]"].isnull()]["PowerRLTMmax[dBm]"].astype(float))
315315

316-
PowerRLTMmin = self.smoothing(np.array(df[~df["PowerRLTMmin[dBm]"].isnull()]["PowerRLTMmin[dBm]"].astype(float)), n=smoothing_n)
316+
PowerRLTMmin = np.array(df[~df["PowerRLTMmin[dBm]"].isnull()]["PowerRLTMmin[dBm]"].astype(float))
317317

318318

319319

CellEnMon/datasets/dme/09062011_13082011/processed/AvtK_52.33331_4.77179_Itht_52.33425_4.78316.csv

-126
This file was deleted.

CellEnMon/datasets/dme/09062011_13082011/processed/AvtK_52.33331_4.77179_XpBK_52.34094_4.76953.csv

-126
This file was deleted.

0 commit comments

Comments
 (0)