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

Rm py3 updates #4

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Rm py3 updates #4

wants to merge 12 commits into from

Conversation

rmorgan10
Copy link
Contributor

This pull request updates several scripts to Python 3 syntax.

Only minor changes regarding the class definition and string splitting.
Only print statements needed to be updated
Update print statements. Line 1075 looks like there may be a logical error resulting from indentation.
@@ -1071,8 +1072,9 @@ def sigmaClipZPallCCDs(args):
verbose=2
matchSortedStdwithObsCats(stdfile,objfile,outfile,stdracol,stddeccol,obsracol,obsdeccol,matchTolArcsec,verbose)

# Rob Morgan (9/28/21) This indentation seems troublesome. Someone should take a look.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kherner This indentation issue I mentioned was also present in the "-old" version of the BLISS script.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have to remind myself of the logic here.

Updated print statement syntax
@rmorgan10
Copy link
Contributor Author

I accidentally did the changes for QC_check.py on the master branch in commit 7683096, but those changes should be reviewed too.

Only changed one print statement.
just updated one print statement
Print statements, configparser, and integer division updates
Included chages for configparser, integer division, and one print statement that was missed the first time
Updated print statements, integer division, and configparser.
Update easy_install, integer division, print statements, and configparser.
Print statements, configparser, and integer division changes
@rmorgan10 rmorgan10 marked this pull request as ready for review October 4, 2021 14:34
@rmorgan10
Copy link
Contributor Author

Just to summarize the whole PR, the Python 2 elements I found were:

  • print statements
  • the use of ConfigParser which is now configparser in py3
  • the use of easy_install which is now depreciated but unused in any of the scripts
  • integer division in places where a division operation was performed on a variable used to index a list

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.

2 participants