-
Notifications
You must be signed in to change notification settings - Fork 10
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
Shapes not aligned rrror when appending to a FileVariable in Python 3 #240
Comments
@zshaheen Do you have a path to your files? |
The files are located here: |
@dnadeau4 I wonder if using |
@zshaheen we need |
Just going off on a small tangent, but when you use
But does this mean that it still writes to the file? Because I use |
@zshaheen this issue is about |
still need a test... |
@zshaheen can you send me the files for the test? |
@dnadeau4 Wouldn't any files work? I would think so. |
I think so, but I wanted you to write the test to make sure it works the way you want it. |
@zshaheen Can you close this if it works for you? |
@zshaheen can you write test for this issue? |
@zshaheen can you write test please? |
@dnadeau4, Apologies, I'll get to this now. We're moving over to Python 3 as our default dev env, so it's more important than ever. |
@dnadeau4 After testing with both the Python 2 and Python 3 versions of cdms (builds py27h6091dcd_1 and py36h6091dcd_1), all is good. Thanks for fixing this Denis. Below is the test I used. I'm not sure where to place this, but somewhere in import cdms2
import vcs
vcs.download_sample_data_files()
files = [vcs.prefix + '/share/uvcdat/sample_data/clt.nc'] * 3
with cdms2.open('temp.nc', 'w') as out_file:
for f in files:
with cdms2.open(f) as input_file:
data = input_file['clt']
out_file.write(data) |
This pull request might fix it. I am waiting for the green light to merge 😄 |
failed due to circleci being slow for Dask. I reran the workflow. |
@zshaheen should be in nightly channel. Can you give it a try? |
This issue is only present in the Python 3 version of the code, not the Python 2 version.
When doing something like the example below, which concatenates data to a file, we get errors using Python 3.
The error is this:
The text was updated successfully, but these errors were encountered: