Git Product home page Git Product logo

microsimu's People

Contributors

alechan avatar

Watchers

 avatar  avatar

microsimu's Issues

Implement "Model Variables Dependency Graph"

  • Clases nodos: Las instancias de las custom classes en python usan como hash al id de la instancia. Entonces
    • Hacer clases para
      • AtomicBlockNode
        • is_atomic_block_node = True
      • ModelVariableNode
        • is_atomic_block_node = False
  • Creación de DAG
    • Crear un digraph con networkx:
      nx.DiGraph()
    • Obtener los atomic blocks de la fase
    • Iterar los atomic blocks
      • Crear un AtomicBlockNode con el bloque como atributo interno
      • Para cada input variable, crear un ModelVariableNode y agregar al grafo el eje (model_variable_node, atomic_block_node)
      • Para cada output variable, hacer algo similar pero cambiando la orientación: (atomic_block_node, model_variable_node)
    • Hacer un topological sort, que devuelve una lista de nodos
    • Dejar en la lista sólo los atomic block nodes

Create docker image

  • Create docker compose base file with everything hardcoded
  • Gradually de-hardcode things moving them to code or .env file

NMI: nginx + docker + django + github actions (read evernote notes)

Implement the infra for DRF for MicroSimu

  • Re-read Evernote notes from DRF's tutorials

  • Define steps needed to set up the infra-structure

  • Don't add a web server, wsgi or production DBs yet.

  • Run the server and confirm that the default page is shown in the browser.

NMI: adapt Django + DRF to production

  • Read again the chapter from obeythetestinggoat.com that deploys to a server
  • [] Google about DRF's production settings
  • [] Read Django's official tutorial chapter that talks about production settings

Create an API test for "simulations" endpoint

The URL returned by the region result serializer is relative and not absolute as the default urls from DRF. See why

The test should:

  1. Send a GET request to /simulations/
  2. Parse the result and get the first simulation JSON object
  3. From 2. send a GET request to the simulation URL
  4. Assert that the data for the simulation is correct (consider assuming that the first simu is the STD run)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.