Skip to content

Commit b3b0af1

Browse files
authored
Merge pull request #106 from fact-project/fact_tools_1.0
Also adapt simulation source pos keys
2 parents b372093 + d7d0c8c commit b3b0af1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fact/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.19.0
1+
0.19.1

fact/analysis/scripts/theta.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ def calc_theta_coordinates(df):
4646
df['theta_deg'] = calc_theta_camera(
4747
df.source_x_prediction,
4848
df.source_y_prediction,
49-
df.zd_source_calc,
50-
df.az_source_calc,
49+
df['source_position_zd'],
50+
df['source_position_az'],
5151
zd_pointing=df['pointing_position_zd'],
5252
az_pointing=df['pointing_position_az'],
5353
)
5454
theta_offs = calc_theta_offs_camera(
5555
df.source_x_prediction,
5656
df.source_y_prediction,
57-
df.zd_source_calc,
58-
df.az_source_calc,
57+
df['source_position_zd'],
58+
df['source_position_az'],
5959
zd_pointing=df['pointing_position_zd'],
6060
az_pointing=df['pointing_position_az'],
6161
n_off=5,
@@ -77,7 +77,7 @@ def calc_theta_coordinates(df):
7777
@click.argument('INPUTFILE')
7878
@click.option(
7979
'-s', '--source',
80-
help='Source name, if not given, take `az_source_calc`, and `zd_source_calc`'
80+
help='Source name, if not given, take `source_position_az`, and `source_position_zd`'
8181
)
8282
@click.option('-c', '--chunksize', type=int, default=10000)
8383
@click.option('-y', '--yes', is_flag=True, help='Do not ask to overwrite existing keys')

0 commit comments

Comments
 (0)