Giter VIP home page Giter VIP logo

Comments (8)

time-trader avatar time-trader commented on September 25, 2024 1

@time-trader I think one part of the problem is a typo in the output_manifest key - there shouldn't be a : at the end. This is what's in your twine file currently:

  "output_manifest:": [
    {
      "key": "open_foam_result",
      "purpose": "A dataset containing solution fields of an openfoam case."
    },
    {
      "key": "airfoil_cp_values",
      "purpose": "A file containing cp values"
    }
  ]

@cortadocodes Yes. That was a problem. I will go cry in the corner for not noticing that ":"

from octue-sdk-python.

cortadocodes avatar cortadocodes commented on September 25, 2024

@time-trader I think I've fixed this but please send me your Twine file and a minimal amount of code that reproduces the issue so I can make sure.

from octue-sdk-python.

cortadocodes avatar cortadocodes commented on September 25, 2024

@thclark I'm not sure the second and third tickboxes are related to this issue now?

from octue-sdk-python.

thclark avatar thclark commented on September 25, 2024

@thclark I'm not sure the second and third tickboxes are related to this issue now?

Can you make a test where twine file specifies an output manifest, then assert that the value of output_manifest is not none in run()?

On the documentation, this seems like a weird place to start so happy with skipping that. Although I have a strong feeling we should actually deprecate input_dir on the analysis object to dissuade people from using it. It's best to use the path property on the Dataset (which is a Pathable) in question (that way we can ultimately allow datasets to reside in different locations)

from octue-sdk-python.

cortadocodes avatar cortadocodes commented on September 25, 2024

Here is the twine that resulted in this bug: https://gitlab.com/windenergie-hsr/aerosense/digital-twin/fsi-twins/foam_2d_twine/-/blob/dev/twine.json

from octue-sdk-python.

cortadocodes avatar cortadocodes commented on September 25, 2024

@time-trader I think one part of the problem is a typo in the output_manifest key - there shouldn't be a : at the end. This is what's in your twine file currently:

  "output_manifest:": [
    {
      "key": "open_foam_result",
      "purpose": "A dataset containing solution fields of an openfoam case."
    },
    {
      "key": "airfoil_cp_values",
      "purpose": "A file containing cp values"
    }
  ]

from octue-sdk-python.

cortadocodes avatar cortadocodes commented on September 25, 2024

@thclark the other problem appears to be in the Runner._update_manifest_path method:

@staticmethod
def _update_manifest_path((manifest, pathname):
    if manifest is not None and hasattr(pathname, "endswith"):
        if pathname.endswith(".json"):
            manifest.path = os.path.split(pathname)[0]

        # Otherwise do nothing and rely on manifest having its path variable set already
        return manifest

This returns None if the pathname is None, erasing the manifest if it exists.

I might be lacking some context here, but it seems incorrect that a Manifest can have a path at the same time as the output_manifest_path argument of the Runner.run method is None.

from octue-sdk-python.

thclark avatar thclark commented on September 25, 2024

@time-trader please don't cry. If you promise not to cry we'll promise to move octue/twined#16 up the priority board to prevent exactly this scenario from happening.

from octue-sdk-python.

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.