-
Notifications
You must be signed in to change notification settings - Fork 0
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
Devel validation #103
Merged
Merged
Devel validation #103
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d95a83a
Models for Validated, Hourly, Daily and Monthly
pxjacomex 5092539
Added initial migrations
pxjacomex a5d27f3
Validation calculations and UI. First approach for integration
pxjacomex 02476a7
Some changes
pxjacomex ca9badf
Updates for validation calculations
pxjacomex 5955570
Delete .idea directory, added to .gitignore
pxjacomex 817442f
Pre-commit test: Updating versions of black and isort for pre-commit
pxjacomex b19e84d
Validation module: Calculations for detail of the day, and store proc…
pxjacomex 9887a8d
Validation: GUI (partial progress)
pxjacomex b972042
Validation module GUI: Creating Tab panels for plot and tables
pxjacomex e28c6dc
Validation: GUI translation to english first steps. Some python code …
pxjacomex b611d82
Validation module: 1) translation of python and js functions (partial…
pxjacomex 7e71dbd
translating to english
pxjacomex fdb84d8
Translation JS and python (partial)
pxjacomex 6a2324a
Validation module: translation
pxjacomex 4de8511
1) GUI for downloading and plot data 2) Function for calculating Hour…
pxjacomex 24e8b7e
Validatin module: Calculte Daily, Monthly and Hourly in Thread launch
pxjacomex 70e712f
1)Added Plotly JS file, 2)Indexes definitions in parent Class (chang…
pxjacomex c0250db
Validation: Temporal code: changing column name to 'value' for normal…
pxjacomex 3205428
Generalization of validation module for different column names: avera…
pxjacomex d8cc67c
Validation module updates
pxjacomex d5dede4
Validation module Ver. 1.0
pxjacomex 38c04c3
Merge branch 'develop' into devel-validation
dalonsoa 88c2da2
Add extra initial data and adatp to use under Windows
dalonsoa d1fcd84
Update docker configuration
dalonsoa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ repos: | |
rev: "23.1.0" | ||
hooks: | ||
- id: black | ||
exclude: ^migrations/|data/ | ||
exclude: ^migrations/|data/|venv |
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
Empty file.
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
Empty file.
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,20 @@ | ||
######################################################################################## | ||
# Plataforma para la Iniciativa Regional de Monitoreo Hidrológico de Ecosistemas Andinos | ||
# (iMHEA)basada en los desarrollos realizados por: | ||
# 1) FONDO PARA LA PROTECCIÓN DEL AGUA (FONAG), Ecuador. | ||
# Contacto: [email protected] | ||
# 2) EMPRESA PÚBLICA METROPOLITANA DE AGUA POTABLE Y SANEAMIENTO DE QUITO (EPMAPS), | ||
# Ecuador. | ||
# Contacto: [email protected] | ||
# | ||
# IMPORTANTE: Mantener o incluir esta cabecera con la mención de las instituciones | ||
# creadoras, ya sea en uso total o parcial del código. | ||
######################################################################################## | ||
|
||
from __future__ import unicode_literals | ||
|
||
from django.apps import AppConfig | ||
|
||
|
||
class DailyConfig(AppConfig): | ||
name = "daily" |
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,32 @@ | ||
from django_filters import rest_framework as filters | ||
|
||
from station.models import Station | ||
|
||
|
||
class DailyFilter(filters.FilterSet): | ||
""" | ||
Filter class for hourlys that are not Polar Wind, Discharge Curve, or Level Function | ||
and that have no depth information. | ||
""" | ||
|
||
date = filters.DateFilter(field_name="date", lookup_expr="exact") | ||
min_date = filters.DateFilter(field_name="date", lookup_expr="gte") | ||
max_date = filters.DateFilter(field_name="date", lookup_expr="lte") | ||
value = filters.NumberFilter(field_name="value", lookup_expr="exact") | ||
min_value = filters.NumberFilter(field_name="value", lookup_expr="gte") | ||
max_value = filters.NumberFilter(field_name="value", lookup_expr="lte") | ||
station_id = filters.NumberFilter(field_name="station_id", lookup_expr="exact") | ||
used_for_daily = filters.BooleanFilter( | ||
fieldname="used_for_daily", lookup_expr="exact" | ||
) | ||
|
||
|
||
class DailyFilterDepth(DailyFilter): | ||
""" | ||
Filter class for hourlys that are not Polar Wind, Discharge Curve, or Level Function | ||
and that have depth information. | ||
""" | ||
|
||
depth = filters.NumberFilter(field_name="depth", lookup_expr="exact") | ||
min_depth = filters.NumberFilter(field_name="depth", lookup_expr="gte") | ||
max_depth = filters.NumberFilter(field_name="depth", lookup_expr="lte") |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import is not needed here