Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing directories and symbolic links #29

Open
perda04 opened this issue Jul 25, 2020 · 3 comments
Open

Missing directories and symbolic links #29

perda04 opened this issue Jul 25, 2020 · 3 comments

Comments

@perda04
Copy link

perda04 commented Jul 25, 2020

With a clean git clone of this, run.py errors out quickly because of path errors. It should be addressed internally but with this at the top of run.py, it will run

import os
aialpha_home=os.getcwd()
datadir = aialpha_home + '/data/processed_data'
os.makedirs(datadir, exist_ok=True)
os.chdir(datadir)
sampledata = aialpha_home + '/sample_data/'
if not os.path.exists('sample_data') :
os.symlink(sampledata, 'sample_data')

autoencodedata = aialpha_home + '/sample_data/processed_data/autoencoder_data'
if not os.path.exists('rf_data'):
os.symlink(autoencodedata, 'rf_data')

os.chdir(aialpha_home)

@justin13601
Copy link

Nice, it seems your code addition did in fact fix the initial problem. However, while the neural net is training now, the script still runs into another path error (directory not found)... Perhaps I'm still missing something...

@perda04
Copy link
Author

perda04 commented Jul 26, 2020

I'm changing my suggestion to pick up the missing processing directories.

`import os
aialpha_home=os.getcwd()
datadir = aialpha_home + '/data/processed_data'
autoencoderdata = aialpha_home + '/sample_data/processed_data/autoencoder_data'
sampledata = aialpha_home + '/sample_data/'
sampledataprocessed = aialpha_home + '/sample_data/processed_data'

os.makedirs(datadir, exist_ok=True)
os.chdir(datadir)

if not os.path.exists('sample_data') :
os.symlink(sampledata, 'sample_data')

if not os.path.exists('rf_data') :
os.symlink(autoencoderdata, 'rf_data')

os.chdir(sampledataprocessed)
if os.path.exists('rf_data'):
if os.path.exists('rf_data_dist'):
os.rmdir('rf_data_dist')

os.rename('rf_data', 'rf_data_dist')
os.symlink(autoencoderdata, 'rf_data')

os.chdir(aialpha_home)
`

@Bigg-Iron
Copy link

I'm changing my suggestion to pick up the missing processing directories.

import os
aialpha_home=os.getcwd()
datadir = aialpha_home + '/data/processed_data'
autoencoderdata = aialpha_home + '/sample_data/processed_data/autoencoder_data'
sampledata = aialpha_home + '/sample_data/'
sampledataprocessed = aialpha_home + '/sample_data/processed_data'

os.makedirs(datadir, exist_ok=True)
os.chdir(datadir)

if not os.path.exists('sample_data') :
os.symlink(sampledata, 'sample_data')

if not os.path.exists('rf_data') :
os.symlink(autoencoderdata, 'rf_data')

os.chdir(sampledataprocessed)
if os.path.exists('rf_data'):
if os.path.exists('rf_data_dist'):
os.rmdir('rf_data_dist')


os.rename('rf_data', 'rf_data_dist')
os.symlink(autoencoderdata, 'rf_data')


os.chdir(aialpha_home)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants