Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix analysis #226

Merged
merged 3 commits into from
Nov 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lstchain/reco/dl0_to_dl1.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def r0_to_dl1(input_filename=get_dataset_path('gamma_test_large.simtel.gz'),
ucts_timestamp = event.lst.tel[telescope_id].evt.ucts_timestamp

if ucts_timestamp != 0:
# UCTS timestamps are nanoseconds in UNIX timestamp format
utc_time = Time(datetime.utcfromtimestamp(ucts_timestamp * u.ns))
# UCTS timestamps are nanoseconds in UNIX timestamp format and must be given in seconds
utc_time = Time(datetime.utcfromtimestamp(ucts_timestamp / 1e9))
else:
start_ntp = event.lst.tel[telescope_id].svc.date
ntp_time = start_ntp + event.r0.tel[telescope_id].trigger_time
Expand Down
2 changes: 1 addition & 1 deletion lstchain/scripts/onsite/onsite_create_calibration_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def main():
print(f"\n--> Log file {log_file}")

# define config file
config_file = os.path.join(os.path.dirname(__file__), "../../lstchain/data/onsite_camera_calibration_param.json")
config_file = os.path.join(os.path.dirname(__file__), "../../data/onsite_camera_calibration_param.json")
if not os.path.exists(config_file):
print(f">>> Config file {config_file} do not exists. \n Exit ")
exit(1)
Expand Down
4 changes: 2 additions & 2 deletions lstchain/scripts/onsite/onsite_create_drs4_pedestal_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def main():
output_dir = f"{base_dir}/calibration/{date}/{prod_id}"
if not os.path.exists(output_dir):
print(f"--> Create directory {output_dir}")
os.makedirs(dir, exist_ok=True)
os.makedirs(output_dir, exist_ok=True)

# make log dir
log_dir = f"{output_dir}/log"
if not os.path.exists(log_dir):
print(f"--> Create directory {log_dir}")
os.makedirs(dir, exist_ok=True)
os.makedirs(log_dir, exist_ok=True)

# define output file
output_file = f"{output_dir}/drs4_pedestal.Run{run}.0000.fits"
Expand Down