Giter VIP home page Giter VIP logo

Comments (3)

drowenhorst-nrl avatar drowenhorst-nrl commented on June 20, 2024

Not sure if related but ... with hdf5 files with attributes, attempting to remove rows using the "X" on the create template window, the first click will not remove the selected row, but the top item. Further clicks appear to do nothing.

from metaforge.

cryos avatar cryos commented on June 20, 2024

This seems like a more general problem with attributes not quite fitting the data model. So our simple solution of just adding a * works for the most part, but the new XML parser is suffering from the same issue. I started looking into this last week, and I can see it with XML and HDF5 files.

Looking at the way the tree model works you cannot uncheck "directory" type things that contain other things. The issue as I see it is without attributes an entry is either a containing directory, so it doesn't get its own row in the table, or it is a data entry and it does get an entry. We now have another situation where an entry might be made for a data entry, and that data entry has several attributes it contains.

I think I understand the ez model stuff, but this probably warrants a discussion before we go changing things. Do we want to make attributes special in the data model, or do we want to generalize the nodes that contain things to be checkable/uncheckable in their own right?

from metaforge.

joeykleingers avatar joeykleingers commented on June 20, 2024

We had a meeting about this and decided to do the following:

  • Rewrite any parsers that are returning nested file dictionaries to instead return flattened file dictionaries. EzMetadataModel also needs to be updated to remove the logic dealing with unpacking nested file dictionaries. The code in there should simplify quite a bit since it'll just be a matter of parsing each incoming flattened dictionary item into an EzMetaDataEntry object and then appending it to the "entries" list property.

  • Any node (Foo) that has attributes will have a node in the tree called "Foo*" and a parallel node in the tree called "Foo.attributes" in italics. All the attributes for node Foo are listed as children of "Foo.attributes".

from metaforge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.