521a9179eea95baa08aa13c911b8bb6228401f42,eat/apcal/apcal.py,,ALMAtime2STANDARDtime,#Any#,262
Before Change
def ALMAtime2STANDARDtime(atime):
h = int(atime.split(":")[0])
m = int(atime.split(":")[1].split(".")[0])
s = round(60*(float(atime.split(":")[1].split(".")[1])/100))
dt = datetime.timedelta(hours = h, minutes=m,seconds = s)
return dt
def prepare_data_for_sefd(alist, path_antab ="ANTABS/"):
After Change
sec = (atime.split(":")[1].split(".")[1])
frac_min = float(sec)/10**(len(sec))
sec_with_frac = 60*frac_min
s = np.floor(sec_with_frac)
us = int((sec_with_frac - s)*1e6)
dt = datetime.timedelta(hours = h, minutes=m,seconds = s, microseconds=us)
return dt
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: sao-eht/eat
Commit Name: 521a9179eea95baa08aa13c911b8bb6228401f42
Time: 2018-03-12
Author: maciek.wielgus@gmail.com
File Name: eat/apcal/apcal.py
Class Name:
Method Name: ALMAtime2STANDARDtime
Project Name: idaholab/raven
Commit Name: 4649737fb4c218626e9c641587fa53db0100bacf
Time: 2020-12-01
Author: diego.mandelli@inl.gov
File Name: framework/utils/randomUtils.py
Class Name:
Method Name: randomIntegers
Project Name: home-assistant/home-assistant
Commit Name: a4214afddbc10730c4fcbd33815a1b533b3ca359
Time: 2017-12-10
Author: molobrakos@users.noreply.github.com
File Name: homeassistant/components/sensor/volvooncall.py
Class Name: VolvoSensor
Method Name: state