GSTT-CSC / hazen-web-app

Interactive web-based implementation of hazen
Other
0 stars 0 forks source link

Adds basic structure for class based tasks #35

Closed laurencejackson closed 2 years ago

laurencejackson commented 2 years ago

I've created a class for the spatial_resolution task a demonstration of how i think this can work, opening aPR now so I can get some feedback on it.

I'm sure there are more generic methods that can be added to the Task class, the functions defined in hazenlib.__init__ are good candidates.

Tested the CLI locally and it works as expected.

If people are happy with this I'll go ahead and classify the other tasks and update their tests.

tomaroberts commented 2 years ago

This refactoring will happen in the hazenlib repo – this is just an example of creating new classes.

@laurencejackson will take care of this.