mosquito-alert / mosquito_alert Goto Github PK
View Code? Open in Web Editor NEWThe Django app behind Mosquito Alert platform.
Home Page: https://webserver.mosquitoalert.com
License: Other
The Django app behind Mosquito Alert platform.
Home Page: https://webserver.mosquitoalert.com
License: Other
This has several dependencies to be aware of: map, map publication and entolab
is not flagged
in case of report: + is_public
Fix this:
https://github.com/MoveLab/tigatrapp-server/blob/master/tigaserver_app/models.py#L549
It's already corrected in the repository/master, but latest version is not yet in production
Scenario: we want to get all boundaries that contain a point.
Current strategy:
Using a queryset that queries all boundaries in DB and get those that contains the desired point.
Proposed strategy:
Query first only boundaries from the highest boundary_level (aka: countries), which contains less objects, and get the/those boundaries that contain the point. Then, query the boundaries from the next boundary_level and filter only that are children from the previous result... And so on until reaching the last boundary_level
Candidates:
https://github.com/abhiabhi94/django-flag-app
https://github.com/idlesign/django-siteflags
https://github.com/caffeinehit/django-flaggit
https://github.com/pinax/django-flag
https://github.com/dominno/django-moderation/
https://django-contrib-comments.readthedocs.io/en/latest/moderation.html
Example:
Rank Specie:
OK -> Aedes albopictus
KO -> Aedes Albopictus
Rank other than species: allow anything
We are trying to consolidate all of the Mosquito Alert repositories in the Mosquito-Alert organization. This is low-priority, but at some point we should transfer this one after double-checking that doing so will not break anything. My experience so far is that this is very easy: Just transferring ownership under Settings will move the repository and also create redirects such that all of the existing URLs continue to work (both the GithHub URLs for anyone clicking an old link to the MoveLab/tigaserver repository, and the git remotes on our local machines and servers for pulling and pushing code).
Individual is in a photo inside a boundig box
ComputerVision return classes in a bounding box
https://docs.aws.amazon.com/rekognition/latest/dg/images-displaying-bounding-boxes.html
Example:
polygon = Polygon.from_bbox(bbox=(0,0,10,10))
polygon_children = Polygon.from_bbox(bbox=(1,1,5,5))
point_in_children = Point(2,2)
boundary_a = Boundary(geometry=polygon)
boundary_a_child = Boundary(parent=boundary_a, geometry=polygon_children)
loc = Location(point=point_in_children)
assert frozenset(loc.boundaries.all()) == frozenset([boundary_a, boundary_a_child])
# Unlink parent boundary
boundary_a.locations.remove(loc)
# HERE: child should have been removed to
assert loc.boundaries.all() == []
LINKING PARENT -> SHOULD TRY TO LINK ALL THE DESCENDANTS
UNLINKING PARENT -> UNLINK ALL THE DESCENDANTS
LINKING CHILDREN -> MUST LINK ALL PARENTS
UNLINKING CHILDREN -> Do nothing
Shareable means:
- is_public
- license allows being shared
to:
add attributes
add is_transition in monthly distribution?
Apart from import_export, take https://github.com/tolomea/django-data-browser into account
Decide how to trigger that bool
We don't need to obtain precision on distance computation, only the geolocation of points. geometry will be faster. srid=4326
In order to exchange occurrence data, Darwin Core offers an XML interchange format.
We should create an API that enables other systems to harvest records through Darwin Core (with the proper authentication method).
See also https://www.gbif.org/infrastructure/registry since everything we create should be GBIF-harvestable as well if necessary.
Show URL in admin
Decide if report -> individual is:
A user can have a role in the organization.
Users with certain roles can invite others
Output (products) are linked to the organization.
Users can have a role in a team/organization.
Different types:
Photo is rotated, but EXIF still have the Orientation tag wrong.
Determine a threshold of "good quality"
Data source candidates:
Benchmarks:
Conclusion: use https://rhodesmill.org/skyfield/
Take into account places where the sun never reaches certain degrees below the horizon (e.g: northern Sweden)
Report type: IndividualReport & BiteReport
ACHTUNG: Use local datetime (TZ) as reference
Interesting info:
To be read: https://besjournals.onlinelibrary.wiley.com/doi/10.1111/2041-210X.13290
Adapt the current superexpert revision capability to allow national supervisors to revise the reports validated by IA. The national supervisor executively validates the report and removes the IA validation.
Start transaction.atomic when objects are saved in db.
Check if transaction.atomic is needed... Not sure if import_export is already guaranteeing it
Ensure transaction lock is as short as possible
If a user creates and identificationsuggestion:
If a user doesn't how to identify the individual and want to forget about it:
Users have to be able to annotate certain characteristics from individuals such as:
Hard voting system
Should be implemented with push
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.