Giter VIP home page Giter VIP logo

Comments (6)

samotiwala avatar samotiwala commented on June 9, 2024

Is this to also add a workaround for paths? I was able to only run the config demo (from a PR) after copying it one level up, and then moved my config.json one level down under demos. I then ran the test_single_batch_run.py script under demos fine.

from adam_home.

laurahlark avatar laurahlark commented on June 9, 2024

Hm, yes, but I think there already is one - it's in the README here: https://github.com/B612-Asteroid-Institute/adam (export PYTHONPATH=/path/to/adam/:$PYTHONPATH). Did that work for you? I thought it worked for me, but I also might have accidentally 'fixed' my installation some other way.

from adam_home.

samotiwala avatar samotiwala commented on June 9, 2024

Ah I see. It didn't but I could have done something wrong. Either way, the relative path should be the same since it's all in the same repository workspace? So if adam is one level up from the demos, the path should be export PYTHONPATH=../:$PYTHONPATHor something like that, and it would be good to include it in the notebooks.

from adam_home.

laurahlark avatar laurahlark commented on June 9, 2024

I think it's meant to be absolute path - for me, I ran this (well actually added it to my .bash_profile):

export PYTHONPATH="/Users/lauralark/Documents/GitHub/adam:$PYTHONPATH"

That way it'll work whether you're in demos, the top level folder, or a different folder (e.g. the analysis folders)

from adam_home.

samotiwala avatar samotiwala commented on June 9, 2024

Ok, I see what you are saying. You can go two routes: add a path for each demo notebook that is relative to the adam path, or just add one path to your bash profile that takes care of it all, which is probably easier/cleaner. Thanks for clearing it up.

from adam_home.

laurahlark avatar laurahlark commented on June 9, 2024

I think this can be closed now. Demos work, integration test are in.

from adam_home.

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.