Skip to content

Issue 1801 old scr files#1820

Merged
doutriaux1 merged 19 commits intomasterfrom
issue_1801_old_scr_files
Mar 22, 2016
Merged

Issue 1801 old scr files#1820
doutriaux1 merged 19 commits intomasterfrom
issue_1801_old_scr_files

Conversation

@doutriaux1
Copy link
Copy Markdown
Contributor

@aashish24 @danlipsa @sankhesh 99% fixes for reading VERY old vcs script files, but there are a few tweaks in there for setting line attributes using an actual line object or its name, please review.

@doutriaux1
Copy link
Copy Markdown
Contributor Author

goes with CDAT/uvcdat-testdata#107

elif (queries.isline(value) == 1):
hvalue = value.name
elif value in vcs.elements["line"]:
self.linecolor = vcs.elements["line"][value].color[0]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If vcs.elements["line"][value] returns None, these lines would cause a crash.

If you think that will never happen, please ignore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it should never happen vcs.elements are auto-populated when creating vcs objects

@sankhesh
Copy link
Copy Markdown
Contributor

Apart from the one comment, LGTM.

@doutriaux1
Copy link
Copy Markdown
Contributor Author

@chaosphere2112 @aashish24 can you please merge. Thanks

Comment thread Packages/vcs/Lib/fillarea.py Outdated
vals.append(float(V))
atts[a] = vals
f.style = atts.get("fais", f.style)
if code.find("(") > -1: # ok with have the keywords speeled out
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelled*

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't know about speeling keywords? You should looking into it it's most useful 😉

remove debug comment
typo and magic keyword meaning explained when possible
keywords doc
@chaosphere2112
Copy link
Copy Markdown
Contributor

LGTM; does it pass all tests?

@doutriaux1
Copy link
Copy Markdown
Contributor Author

@chaosphere2112 running it now

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

Successfully merging this pull request may close these issues.

3 participants