Git Product home page Git Product logo

Comments (4)

cyrush avatar cyrush commented on July 19, 2024 1

@rhornung67 yes, that is a case I was thinking about.

I don't know the exact order of the steps, we may not use NULLs, but that type of case is one where if folks are careful it makes sense for this to be allowed.

Error checking for null in verify and in other places is something we should add.

from conduit.

cyrush avatar cyrush commented on July 19, 2024

@BradWhitlock sorry this caused you frustration.

I don't recommend it, but I think there are folks that will want to use NULL w/ set external.

I agree that blueprint verify should flag invalid if pointers are NULL, and that the to_string methods (json / yaml) should error instead of crashing if they encounter null pointers.

from conduit.

BradWhitlock avatar BradWhitlock commented on July 19, 2024

I can possibly see allowing NULL to act as a placeholder for data that is not created yet. Still, it makes a Blueprint tree that is not valid and cannot be used with relay, partitioning, or other algorithms that do not expect to get NULL data in field values. It's easier just to not allow in the first place.

from conduit.

rhornung67 avatar rhornung67 commented on July 19, 2024

@cyrush don't we do this sort of thing (set up a BP tree with null external data ptrs) in Sidre when we read in a restart dump for a Fortran code, for example? IIRC, the BP tree is defined first, then Fortran app allocates the data arrays, then Conduit reads the data into those arrays from an HDF5 file.

@BradWhitlock maybe still allow this process, but don't allow using relay, etc. on an invalid BP tree?

from conduit.

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.