Skip to content

Commit

Permalink
Merge pull request #302 from sot/no-aiprops-report
Browse files Browse the repository at this point in the history
Remove aiprops report
  • Loading branch information
jeanconn authored Oct 24, 2024
2 parents 693bfac + a4acabe commit aa0c8aa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 62 deletions.
17 changes: 0 additions & 17 deletions mica/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,6 @@ def star_info(id):
}


def get_aiprops(obsid):
ACA_DB = Sqsh(dbi="sybase", server="sybase", database="aca", user="aca_read")
aiprops = ACA_DB.fetchall(
"select * from aiprops where obsid = {} order by tstart".format(obsid)
)
return aiprops


def main(obsid):
report_root = REPORT_ROOT
strobs = "%05d" % obsid
Expand Down Expand Up @@ -747,15 +739,6 @@ def main(obsid):
f.close()
interval["loglink"] = newlogname

aiprops = get_aiprops(obsid)
aiprops_template = jinja_env.get_template("aiprops.html")
aiprops_page = aiprops_template.render(obsid=obsid, aiprops=aiprops)
aiprops_page_file = os.path.join(outdir, "aiprops.html")
logger.debug("AIPROPS report to {}".format(aiprops_page_file))
f = open(aiprops_page_file, "w")
f.write(aiprops_page)
f.close()

props_template = jinja_env.get_template("props.html")
props_page = props_template.render(obsid=obsid, vv=vv)
props_page_file = os.path.join(outdir, "props.html")
Expand Down
42 changes: 0 additions & 42 deletions mica/report/templates/aiprops.html

This file was deleted.

4 changes: 2 additions & 2 deletions mica/report/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ <h2><A HREF="{{ links['starcheck_html']['link'] }}">Starcheck</A></h2>
manvr['target_Q2'],
manvr['target_Q3'],
manvr['target_Q4']) }}
{{ " MANVR: Angle= %.2f deg Duration= %d sec Slew err= %.1f arcsec"|format(
manvr['angle_deg'], manvr['duration_sec'], manvr['slew_err_arcsec']) -}}
{{ " MANVR: Angle= %.2f deg Duration= %d sec"|format(
manvr['angle_deg'], manvr['duration_sec']) -}}
{% endfor %}
</PRE>

Expand Down
1 change: 0 additions & 1 deletion mica/report/templates/vv.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ <H2>Aspect Intervals</H2>
</TABLE>

<H2>
<A target="_blank" HREF="aiprops.html">AIPROPS</A> and
<A target="_blank" HREF="props.html">Guide/Fid Props</A></H2>


Expand Down

0 comments on commit aa0c8aa

Please sign in to comment.