Giter VIP home page Giter VIP logo

Comments (2)

mkb0517 avatar mkb0517 commented on August 14, 2024

Each method call in the pipeline will be surrounded by a pre-condition and post-condition. The Framework will execute the conditions to determine whether something should be executed for pre-conditions and whether it executed successfully for post-conditions.

Pre-conditions can check to see if the necessary conditions for execution have been met. If they have not been met, it can execute any commands deemed necessary and return true or false as necessary. If the conditions have been met then it returns true.

Post-conditions can check to see if the proper output was created after the command has been executed.

from framework.

mkb0517 avatar mkb0517 commented on August 14, 2024

Each pre- and post-condition should log the steps it took during the checks and any information relating to those steps.

For example, before the flat-fielding step is applied to reduce science, the precondition for that step must be that there is a master flat on file. If there is no master flat, that will be recorded in the log and the processing of the science file will quit to be reprocessed later when a master flat is obtained. In the naive setup, users will have to track this and trigger a reprocess command manually. However, in a more advanced mode, the post-condition of a master flat creation function can check for files that need to be reprocessed via the proc table.

Pre- and Post- conditions offer a robust way to transfer priority to other parts of the program without the need to abort the current process. They can also handle aborting the process if there is a need. In their simplest form, they can be used as gatekeepers to prevent access to a primitive/recipe.

from framework.

Related Issues (16)

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.