Skip to content

Commit

Permalink
Merge pull request #106 from fact-project/fact_tools_1.0
Browse files Browse the repository at this point in the history
Also adapt simulation source pos keys
  • Loading branch information
maxnoe authored Mar 12, 2018
2 parents b372093 + d7d0c8c commit b3b0af1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fact/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.19.0
0.19.1
10 changes: 5 additions & 5 deletions fact/analysis/scripts/theta.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ def calc_theta_coordinates(df):
df['theta_deg'] = calc_theta_camera(
df.source_x_prediction,
df.source_y_prediction,
df.zd_source_calc,
df.az_source_calc,
df['source_position_zd'],
df['source_position_az'],
zd_pointing=df['pointing_position_zd'],
az_pointing=df['pointing_position_az'],
)
theta_offs = calc_theta_offs_camera(
df.source_x_prediction,
df.source_y_prediction,
df.zd_source_calc,
df.az_source_calc,
df['source_position_zd'],
df['source_position_az'],
zd_pointing=df['pointing_position_zd'],
az_pointing=df['pointing_position_az'],
n_off=5,
Expand All @@ -77,7 +77,7 @@ def calc_theta_coordinates(df):
@click.argument('INPUTFILE')
@click.option(
'-s', '--source',
help='Source name, if not given, take `az_source_calc`, and `zd_source_calc`'
help='Source name, if not given, take `source_position_az`, and `source_position_zd`'
)
@click.option('-c', '--chunksize', type=int, default=10000)
@click.option('-y', '--yes', is_flag=True, help='Do not ask to overwrite existing keys')
Expand Down

0 comments on commit b3b0af1

Please sign in to comment.