Giter VIP home page Giter VIP logo

Comments (4)

arosale4 avatar arosale4 commented on September 24, 2024

Additionally, as long as you keep the same order within the calculate and reference datatype it will compare the right data.
Both of these should work:
python compare.py -c " -d somedirc/ -me file1 file2" -r " -d somedirc/ -je file1 file2"
python compare.py -c " -d somedirc/ -me file2 file1" -r " -d somedirc/ -je file2 file1"

Again can this be confirmed?

from q2mm.

ericchansen avatar ericchansen commented on September 24, 2024

So this will work:
python compare.py -c " -d somedirc/ -me -mea -meo -meao -mb -ma -mt -mq -mqh -mqa -mh -mgeig" -r " -d somedirc/ -je -jea -jeo -jeao -jb -ja -jt -jq -jqh -jqa -jh -jgeig"

where as if I were to switch the orders of the datatypes it will not be compared appropriately.

So this will not work, where I have moved angle and torsions to the end of the line:
python compare.py -c " -d somedirc/ -me -mea -meo -meao -mb -mq -mqh -mqa -mh -mgeig -ma -mt " -r " -d somedirc/ -je -jea -jeo -jeao -jb -jq -jqh -jqa -jh -jgeig -ja -jt"

Actually, both of these will work. The calculate module creates a list of Datum objects, and these objects are always added in the following order: -r, -je, -ge, -me, -jea, -gea, -mea, -jeo, -geo, meo, -jeao, -geao, -meao, -jb, -mb, -ja, -ma, -jt, -mt, -jq, -mq, -jqh, -mqh, -jqa, -mqa, -jh, -gh, -mh, -jeigz, -geigz, -mjeig, -mgeig (hope I didn't miss any on that skim through calculate.py). You can also look through calculate.py to see the order. I tried to make it fairly clear with all capital comments.

Additionally, as long as you keep the same order within the calculate and reference datatype it will compare the right data.
Both of these should work:
python compare.py -c " -d somedirc/ -me file1 file2" -r " -d somedirc/ -je file1 file2"
python compare.py -c " -d somedirc/ -me file2 file1" -r " -d somedirc/ -je file2 file1"

This is the important part, and yes, both of those will work. However,

python compare.py -c " -d somedirc -me file1 file2" -r " -d somedirc -je file2 file1"

will not align the data properly.

from q2mm.

arosale4 avatar arosale4 commented on September 24, 2024

You are correct, you should have to specify the datatype order. There were some sort commands that were left un-commented in compare.py. It may be beneficial to still put them in that order, for "just in case" measures.

from q2mm.

ericchansen avatar ericchansen commented on September 24, 2024

Hmm those uncommented sort commands may mess things up. Thanks for catching that. I'll look into that.

from q2mm.

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.