-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into main; update meta data
- Loading branch information
Showing
41 changed files
with
114 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include LICENSE | ||
include README.md | ||
recursive-include tom_superevents/static * | ||
recursive-include tom_superevents/templates * | ||
recursive-include tom_nonlocalizedevents/static * | ||
recursive-include tom_nonlocalizedevents/templates * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
[![pypi](https://img.shields.io/pypi/v/tom-superevents.svg)](https://pypi.python.org/pypi/tom-superevents) | ||
[![run-tests](https://github.com/TOMToolkit/tom_superevents/actions/workflows/run-tests.yml/badge.svg)](https://github.com/TOMToolkit/tom_superevents/actions/workflows/run-tests.yml) | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cbcf7ce565d8450f86fff863ef061ff9)](https://www.codacy.com/gh/TOMToolkit/tom_superevents/dashboard?utm_source=github.com&utm_medium=referral&utm_content=TOMToolkit/tom_superevents&utm_campaign=Badge_Grade) | ||
[![Coverage Status](https://coveralls.io/repos/github/TOMToolkit/tom_superevents/badge.svg?branch=main)](https://coveralls.io/github/TOMToolkit/tom_superevents?branch=main) | ||
[![run-tests](https://github.com/TOMToolkit/tom_nonlocalizedevents/actions/workflows/run-tests.yml/badge.svg)](https://github.com/TOMToolkit/tom_nonlocalizedevents/actions/workflows/run-tests.yml) | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cbcf7ce565d8450f86fff863ef061ff9)](https://www.codacy.com/gh/TOMToolkit/tom_nonlocalizedevents/dashboard?utm_source=github.com&utm_medium=referral&utm_content=TOMToolkit/tom_nonlocalizedevents&utm_campaign=Badge_Grade) | ||
[![Coverage Status](https://coveralls.io/repos/github/TOMToolkit/tom_nonlocalizedevents/badge.svg?branch=main)](https://coveralls.io/github/TOMToolkit/tom_nonlocalizedevents?branch=main) | ||
|
||
# GW Superevent (or GRB, Neutrino) EM follow-up | ||
|
||
This reusable TOM Toolkit app provides support for gravitational wave (GW) | ||
superevent electromagnetic (EM) follow up observations. | ||
This reusable TOM Toolkit app provides support for gravitational wave (GW) superevent | ||
and other non-localized event electromagnetic (EM) follow up observations. | ||
|
||
## Installation | ||
|
||
1. Install the package into your TOM environment: | ||
```bash | ||
pip install tom_superevents | ||
pip install tom_nonlocalizedevents | ||
``` | ||
|
||
2. In your project `settings.py`, add `tom_superevents` to your `INSTALLED_APPS` setting: | ||
2. In your project `settings.py`, add `tom_nonlocalizedevents` to your `INSTALLED_APPS` setting: | ||
|
||
```python | ||
INSTALLED_APPS = [ | ||
... | ||
'tom_superevents', | ||
'tom_nonlocalizedevents', | ||
] | ||
``` | ||
|
||
3. Include the tom_superevent URLconf in your project `urls.py`: | ||
3. Include the tom_nonlocalizedevent URLconf in your project `urls.py`: | ||
```python | ||
urlpatterns = [ | ||
... | ||
path('superevents/', include('tom_superevents.urls')), | ||
path('nonlocalizedevents/', include('tom_nonlocalizedevents.urls')), | ||
] | ||
``` | ||
|
||
4. Copy ``tom_superevents/templates/tom_common/base.html`` into your project root's ``templates/tom_common/base.html``. | ||
4. Copy ``tom_nonlocalizedevents/templates/tom_common/base.html`` into your project root's ``templates/tom_common/base.html``. | ||
|
||
5. Run ``python manage.py migrate`` to create the tom_superevent models. | ||
5. Run ``python manage.py migrate`` to create the tom_nonlocalizedevents models. | ||
|
||
|
||
## Running the tests | ||
|
||
In order to run the tests, run the following in your virtualenv: | ||
|
||
`python tom_superevent/tests/run_tests.py` | ||
`python tom_superevents/tests/run_tests.py` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
class TomSupereventsConfig(AppConfig): | ||
name = 'tom_superevents' | ||
name = 'tom_nonlocalizedevents' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
tom_nonlocalizedevents/templates/tom_nonlocalizedevents/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% extends 'tom_common/index.html' %} | ||
<!-- tom_superevent/index.html --> | ||
{% block content %} | ||
<!-- block content --> | ||
<h1>Non-Localized Event Index</h1> | ||
{% if object_list %} | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th scope="col">#</th> | ||
<th scope="col">Event ID</th> | ||
<th scope="col">Event Type</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for event in object_list %} | ||
<tr> | ||
<td scope="row"> | ||
<a href="{% url 'nonlocalizedevents:detail' event.id %}">{{ event.id }}</a> | ||
</td> | ||
<td> | ||
<a href="{{ event.superevent_url }}">{{ event.superevent_id }}</a> | ||
</td> | ||
<td>{{ event.superevent_type }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% else %} | ||
<p>No events have been created. Create Superevents via the admin interface or REST API.</p> | ||
<p>Coming soon: event creation from the <a href="{% url 'tom_alerts:list' %}">SCiMMA Alert Broker</a>.</p> | ||
{% endif %} | ||
|
||
{% endblock content %} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
tom_superevents/tests/factories.py → tom_nonlocalizedevents/tests/factories.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.