Skip to content

Commit

Permalink
Merge pull request #97 from linea-it/94-update-datasets-info
Browse files Browse the repository at this point in the history
Update links after changes in table names.
  • Loading branch information
glaubervila authored Jul 31, 2024
2 parents b060d1d + 1c76859 commit e437235
Show file tree
Hide file tree
Showing 8 changed files with 5,833 additions and 5,855 deletions.
2 changes: 1 addition & 1 deletion compose/local/postgres/init-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ EOSQL
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "daiquiri_data" <<-EOSQL
\i /data/des_dr2_sample.sql;
EOSQL
# -- CREATE INDEX coadd_objects_ra_dec ON des_dr2.coadd_objects USING btree (q3c_ang2ipix(ra, "dec"));
# -- CREATE INDEX coadd_objects_ra_dec ON des_dr2.main USING btree (q3c_ang2ipix(ra, "dec"));

# Create Table GAIA SAMPLE SCHEMA
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "daiquiri_data" <<-EOSQL
Expand Down
6 changes: 3 additions & 3 deletions consume_tap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}
],
"source": [
"query = \"SELECT TOP 10 coadd_object_id, ra, dec from des_dr2.coadd_objects\"\n",
"query = \"SELECT TOP 10 coadd_object_id, ra, dec from des_dr2.main\"\n",
"\n",
"tap_result = tap_service.run_sync(query, language=\"adql\")\n",
"\n",
Expand Down Expand Up @@ -138,7 +138,7 @@
}
],
"source": [
"query = \"SELECT coadd_object_id, ra, dec from des_dr2.coadd_objects limit 10\"\n",
"query = \"SELECT coadd_object_id, ra, dec from des_dr2.main limit 10\"\n",
"\n",
"tap_result = tap_service.run_sync(query, language=\"postgresql\")\n",
"\n",
Expand Down Expand Up @@ -184,7 +184,7 @@
"lang = \"PostgreSQL\"\n",
"query_string = \"\"\"\n",
"SELECT ra, dec\n",
"FROM des_dr2.coadd_objects\n",
"FROM des_dr2.main\n",
"LIMIT 100\n",
"\"\"\"\n",
"tap_session = requests.Session()\n",
Expand Down
2 changes: 1 addition & 1 deletion daiquiri/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
CONESEARCH_ADAPTER = "daiquiri.conesearch.adapter.SimpleConeSearchAdapter"
CONESEARCH_ANONYMOUS = True
CONESEARCH_SCHEMA = "des_dr2"
CONESEARCH_TABLE = "coadd_objects"
CONESEARCH_TABLE = "main"
CONESEARCH_SUBJECTS = ["cone search"]

QUERY_FORMS = [
Expand Down
24 changes: 12 additions & 12 deletions daiquiri/fixtures/initial_data.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions daiquiri/fixtures/query_samples.json

Large diffs are not rendered by default.

30 changes: 4 additions & 26 deletions daiquiri/templates/core/base_navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,6 @@
</ul>
</li>
</ul>
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
aria-expanded="false">
{% trans 'Data' %}<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="{% slugurl 'catalogs' %}">{% trans 'Catalogs' %}</a>
</li>
<li>
<a href="{% slugurl 'des-dr2' %}">{% trans 'DES DR2' %}</a>
</li>
<li>
<a href="{% slugurl 'gaia-dr3' %}">{% trans 'Gaia DR3' %}</a>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
Expand All @@ -78,18 +59,18 @@
</a>
<ul class="dropdown-menu">
<li>
<a href="/metadata/des">{% trans 'DES DR2' %}</a>
<a href="/metadata/des_dr2">{% trans 'DES DR2' %}</a>
<ul class="sub-menu">
<li>
<a href="/metadata/des/main/">des.main</a>
<a href="/metadata/des_dr2/main/">des_dr2.main</a>
</li>
</ul>
</li>
<li>
<a href="/metadata/gaia">{% trans 'Gaia DR3' %}</a>
<a href="/metadata/gaia_dr3">{% trans 'Gaia DR3' %}</a>
<ul class="sub-menu">
<li>
<a href="/metadata/gaia/dr3">gaia.dr3</a>
<a href="/metadata/gaia_dr3/source">gaia_dr3.source</a>
</li>
</ul>
</li>
Expand All @@ -100,9 +81,6 @@
<li>
<a href="{% url 'query:query' %}">{% trans 'Query' %}</a>
</li>
<!-- <li>
<a href="https://scienceserver-dev.linea.org.br/" target="_blank">Science-Server</a>
</li> -->
{% comment %} <li>
<a href="{% url 'contact:contact' %}">{% trans 'Contact' %}</a>
</li> {% endcomment %}
Expand Down
2,010 changes: 1,005 additions & 1,005 deletions database_sample/des_dr2_sample.sql

Large diffs are not rendered by default.

9,602 changes: 4,801 additions & 4,801 deletions database_sample/gaia_dr3_sample.sql

Large diffs are not rendered by default.

0 comments on commit e437235

Please sign in to comment.