Skip to content

Creating new db does not create default units and dimensions #19

Description

@robhoney

The hydra-server init.py contains this code for creating the db:

class HydraServer():

    def __init__(self):

        hdb.create_default_users_and_perms()
        make_root_user()
        hdb.create_default_net()

This does not create the default units and dimensions. It looks like the following needs to be added:

hdb.create_default_units_and_dimensions()

I've tested this (adding after make_root_user() and it works, it creates both the units and definitions.

I think it might also need adding to hydra-base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions