Closed dmopalmer closed 10 months ago
There's a lot of changes in one commit here. For ease of review can you break this formatting change into different commits where black is run on one file at a time and then of course a final commit where np.int is converted to int?
I can do that, but I don't know how much it will ease review. Do you want me to push each time or only at the end.
pushing each time would be great so I can just go through the files as you get them done
I just did 5, an dpushed, so I will push after each one from now on.
Should I skip black on the .py files in the notebook/
directory, to reduce divergence with the corresponding .ipynb
files?
I would say that we should format all the .py files, including those in the notebook directory
YOu pulled while I was still pushing.
(Correction: It appears that I was the one who causes the PR to close. I re-opened.)
Should I also reformat the .ipynb
files?
with the exception of the 3 comments on the example files the other reformats look good to me
I think that looks great to me. Thanks David. On Nov 13, 2023, at 6:17 PM, David Palmer @.***> wrote: @dmopalmer commented on this pull request.
In notebooks/trial_NGC2992.py:
table_everything = ba.from_heasarc(**queryargs)
-minexposure = 1000 # cm^2 after cos adjust -exposures = np.array([object_batsource.exposure(ra=row['RA'], dec=row['DEC'], roll=row['ROLL_ANGLE'])[0] for row in table_everything]) +minexposure = 1000 # cm^2 after cos adjust +exposures = np.array(
What do you think of the format exposures = np.array( [object_batsource.exposure(ra=row["RA"], dec=row["DEC"], roll=row["ROLL_ANGLE"])[0] for row in table_everything ])
? (For all three files). I think it improves the clarity, even if it lacks the purity of letting black format everything.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>
Last push with those reformat. Ready to go.
This looks good to me. I will merge now.
Cleaned up the code by:
black
.The
.ipynb
Jupyter Notebook files were not reformatted.This is to address #13 and a secondary aspect of #12.