UMWRG / HydraPlatform

A library and web server for managing networks.
GNU General Public License v3.0
10 stars 3 forks source link

unknown dimensions appearing #19

Open drheinheimer opened 6 years ago

drheinheimer commented 6 years ago

In short, when calling get_dimensions using the web API, I'm getting a bunch of "unknown" dimensions (see pasted list below). While I can filter these out, it's better to know what these unknown dimensions are, and how to avoid them. This only happens on the public openagua.org, and only recently - my laptop dev environment is fine. I'm guessing my user units are somehow contaminated. As far as I can tell, the only source of dimensions are the unit_definitions.xml and user_units.xml, both of which appear to be fine.

Any ideas?

Probably unrelated, I notice two dimensionless in the list below.

['Angle', 'Temperature', 'Area', 'Unknown', 'dimensionless ', 'Flow', 'distance', 'Unknown2', 'Specific cost (time)', 'Length', 'Mass', 'Time', 'Unit price (mass)', 'Concentration', 'Volume', 'Volumetric flow rate', 'Force', 'Power', 'unknown3', 'Monetary value', 'unknown', 'Energy', 'Density', 'percent', 'Unit price (volume)', 'Mass flow rate', 'Pressure', 'unknown2', 'Money', 'dimensionless', 'Speed', 'Energy price']
amabdallah commented 6 years ago

Sorry, this is my mistake but its good to address it then.

So I've been trying to define new units and dimensions into the Hydra db on my OpenAgua account. I wasn't sure if the units file would be only for me or a central file shared across all the users.

I needed to dynamically define new units and dimensions when I load data into OpenAgua. So I was doing a lot of testing and throwing some units and dimensions in. I'm still facing an issue in calling all the units and dimensions that exist on the Hydra server. I'll work on that this week.

That being said, is there a way that you guys can regulate what users can do with the units file? I'm curious why the units are not part of the database tables and they come preloaded with default values. In such case, they will be isolated for each user.

Sorry again