spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Rename byname -> entity_byname, class_name -> entity_class_name #334

Closed soininen closed 5 months ago

soininen commented 5 months ago

This PR contains two renamings for consistency:

It was suggested in #318 that we choose class_name over entity_class_name instead. I tried this first, but was not happy with the result. We do not shorten any other name so it did not feel right for entity_class_name either. Plus, the long name is consistent with table headers in Spine database editor.

Resolves #318

Checklist before merging

DillonJ commented 5 months ago

@manuelma is off till 19th Jan.

Do we have tests to ensure that SpineInterface continues to work with these changes?

soininen commented 5 months ago

Do we have tests to ensure that SpineInterface continues to work with these changes?

Those tests would be in SpineInterface repository, right? I can check them out.

In any case, this is 0.8-dev change and does not affect users of master branch.

soininen commented 5 months ago

Looks like the SpineInterface tests have not been passing for a while now so they do not really help here.