Giter Club home page Giter Club logo

Comments (6)

anarchivist avatar anarchivist commented on July 29, 2024

Was there a particular motivation for moving all of the loading logic into Fido.main()? I'm trying to upgrade some code I've written that used Fido 1.0.0 to use 1.3.0, and since my code didn't call Fido.main(), it's failing.

from fido.

anarchivist avatar anarchivist commented on July 29, 2024

Sorry, looking at the changes since then. It looks like this has to do with there not being a value for the format_files key when the defaults hash gets created.

from fido.

techmaurice avatar techmaurice commented on July 29, 2024

Correct, the format_files information is now loaded by parsing conf/version.xml. There are two main reasons for this:

  1. this information is needed for the update_signatures.py script in order to determine if the signatures need updating, this was the most viable way
  2. because the information about which signatures to load is in an XML file it is easier to edit than fido.py

I am guessing you are calling class Fido to have the functions return results instead of having to parse STDOUT and STDERR?

My suggestion would be to call Fido.main() with command line arguments and redirect STDOUT and STDERR.
You can find an example on the OPF wiki: http://wiki.opf-labs.org/display/TR/FIDO+Python+workflow+implementation+tips

As stated before, the loading method is somewhat messy and I am working to spruce that up, like catching of exceptions which it completely lacks at the moment.

In the mean while I will reinstate defaults[format_files], please let me now if that fixes it for you.

from fido.

anarchivist avatar anarchivist commented on July 29, 2024

Thanks, Maurice. After looking at this some more I'm leaning towards calling Fido.main(), but I wasn't sure about how to send the arguments before. Would you be willing to update the README to include the link to the workflow implementation document?

from fido.

techmaurice avatar techmaurice commented on July 29, 2024

You are welcome Mark.

In the README there is a link to the usage guide, which has a link to the workflow implementation document, but a direct link to this page might be handy as well.

from fido.

carlwilson avatar carlwilson commented on July 29, 2024

Closed due lack of recent activity.

from fido.

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.