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

Remove aiprops report #302

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
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