pacificclimate / modelmeta

An ORM representation of the model metadata database
GNU General Public License v3.0
1 stars 0 forks source link

Tools for removing files from an ensemble #71

Open corviday opened 6 years ago

corviday commented 6 years ago

We have a reasonably solid tool for associating files to an ensemble, but we don't have a good way to remove files from an ensemble. When I've had to do it, I've just run SQL queries on the live database, not an experience I relish.

It would be nice if there was a better way to remove files from an ensemble. Something that would probably be easy to do would be the inverse of the associate_ensemble script; you'd pass it one or more file names (and optionally variable names) and an ensemble name and those files are removed from the ensemble.

A fancier system might accept a .yaml file that would provide the attributes of the files you'd like added or removed, something like:

add: 
  models:
    model_short_name: CanESM2

  timesets:
    time_resolution: monthly
    multi_year_mean: false

remove:
  timesets:
    multi_year_mean: true

but that seems even less likely to be a good use of our time.

jameshiebert commented 6 years ago

So, I'm a big fan of command line tools. But OTOH I'm not sure how well our command line tools for ensemble create/modify/delete have been serving us. I'm curious as to whether it would be worthwhile to write a small management web app, similar to what you get with the Django admin interface (if you've ever used something like that). Maybe we could try and spin something up using Flask-Admin?