Comments (2)
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.
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)
- Operation model/workflow HOT 2
- Recipes/Primitives system HOT 2
- Reproducibility summary
- Record of processing history
- Describe stakeholders HOT 3
- Data Model HOT 1
- Persistent storage of intermediate steps HOT 2
- Server/client architecture HOT 7
- Recipes association system HOT 2
- -Subclassing- Composition as a way to implement code sharing/inheritance HOT 3
- Standard facilities provided by the framework (logging, display, fits IO ...)
- Execution modes HOT 6
- Neill / Server mode
- Neill / Object oriented model
- Create simulated data sets, FITS file following the header ICD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.