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

Job.create_commands fails when job is not chunked #1

Open
Swarchal opened this issue Jan 27, 2017 · 0 comments
Open

Job.create_commands fails when job is not chunked #1

Swarchal opened this issue Jan 27, 2017 · 0 comments
Labels

Comments

@Swarchal
Copy link
Member

Both python 2.7.12 and 3.5

For some reason the list of dataframes is becoming a list of strings.

Might be due to the weird list un-nesting going on.

AttributeError                            Traceback (most recent call last)
<ipython-input-4-f4074253aec3> in <module>()
----> 1 job.create_commands("pipeline.cppipe", "/home/scott/cptools_test_dir", "/home/scott/cptools_test_dir")

/home/scott/.local/lib/python2.7/site-packages/cptools2-0.1-py2.7.egg/cptools2/job.pyc in create_commands(self, pipeline, location, commands_location)
    167                 # write loaddata csv to disk
    168                 utils.write_loaddata(name=name, location=location,
--> 169                                      dataframe=dataframe)
    170                 # write filelist to disk
    171                 utils.write_filelist(img_list=img_list,

/home/scott/.local/lib/python2.7/site-packages/cptools2-0.1-py2.7.egg/cptools2/utils.pyc in write_loaddata(name, location, dataframe)
     25 def write_loaddata(name, location, dataframe):
     26     loaddata_name = os.path.join(location, "loaddata", name + ".csv")
---> 27     dataframe.to_csv(loaddata_name, index=False)
     28 
     29 

AttributeError: 'str' object has no attribute 'to_csv'
@Swarchal Swarchal changed the title create commands AttributeError: 'str' object has no attribute 'to_csv' create commands AttributeError: 'str' object has no attribute 'to_csv' when not chunked Jan 27, 2017
@Swarchal Swarchal changed the title create commands AttributeError: 'str' object has no attribute 'to_csv' when not chunked Job.create_commands failed when job is not chunked Jan 27, 2017
@Swarchal Swarchal changed the title Job.create_commands failed when job is not chunked Job.create_commands fails when job is not chunked Jan 27, 2017
@Swarchal Swarchal added the bug label Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant