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

axis.clone does not clone anymore! #271

Closed
doutriaux1 opened this issue Aug 29, 2018 · 0 comments
Closed

axis.clone does not clone anymore! #271

doutriaux1 opened this issue Aug 29, 2018 · 0 comments
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

import cdms2
import cdat_info
import MV2

f= cdms2.open(cdat_info.get_sampledata_path()+"/clt.nc")
s = f("clt", **{})
#s.info()

s = s(
    latitude=(
        20, 20, "cob"), longitude=(
        112, 112, "cob"), squeeze=1)
s2 = MV2.sin(s)

ax = s2.getTime()
print "FIRST VAL:",ax[0]
ax2 = ax.clone()
ax2.toRelativeTime("days since 30000")
print("FIRST VALUE UNCHANGED?",ax[0])

Original axes values have been changed this has been introduced in the last commit.
Thanks @muryanto1 for spotting the regression in vcs nighlties

dnadeau4 added a commit that referenced this issue Aug 29, 2018
@doutriaux1 doutriaux1 added this to the 3.1 milestone Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants