Skip to content

feat(fixes): shebangs and cmd-line standards - #120

Open
ocehugo wants to merge 2 commits into
masterfrom
small_fixes
Open

feat(fixes): shebangs and cmd-line standards#120
ocehugo wants to merge 2 commits into
masterfrom
small_fixes

Conversation

@ocehugo

Copy link
Copy Markdown
Contributor

Just small annoying bits - missing shebangs and non-standard cmd line arguments lines.
@mhidas, worth checking if this is safe since I didn't check how you handle the calls to these tools .

@ocehugo
ocehugo requested a review from mhidasApril 23, 2020 00:54
@codecov

codecovBot commented Apr 23, 2020

Copy link
Copy Markdown

Codecov Report

Merging #120 (919b959) into master (ae8b06e) will increase coverage by 15.31%.
The diff coverage is n/a.

@@ Coverage Diff @@## master #120 +/- ##
===========================================
+ Coverage 54.78% 70.09% +15.31% 
===========================================
Files 9 12 +3 Lines 1150 1117 -33 Branches 167 146 -21 ===========================================
+ Hits 630 783 +153 + Misses 493 317 -176 + Partials 27 17 -10 
Impacted FilesCoverage Δ
...tools/timeseries_products/aggregated_timeseries.py95.29% <ø> (+7.98%)⬆️
...odntools/timeseries_products/gridded_timeseries.py0.00% <ø> (ø)
aodntools/timeseries_products/hourly_timeseries.py98.22% <ø> (+9.16%)⬆️
...eseries_products/velocity_aggregated_timeseries.py89.70% <ø> (+89.70%)⬆️
.../timeseries_products/velocity_hourly_timeseries.py0.00% <ø> (ø)
aodntools/__init__.py100.00% <0.00%> (ø)
aodntools/timeseries_products/common.py86.44% <0.00%> (ø)
aodntools/ncwriter/__init__.py100.00% <0.00%> (ø)
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mhidasmhidas left a comment

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.

Thanks @ocehugo . I had thought of making similar changes. We don't use the command-line interface in prod (we just import the modules and call from Python), so this is only relevant to anyone else who might want to run the code elsewhere.
I've made a few other suggestions to apply (to all 5 scripts) while you're at it.
There's also hourly_timeseries.py, which you missed.

Comment threadaodntools/timeseries_products/aggregated_timeseries.py Outdated
Comment threadaodntools/timeseries_products/aggregated_timeseries.py Outdated
Comment threadaodntools/timeseries_products/aggregated_timeseries.py Outdated
@mhidas

Copy link
Copy Markdown
Contributor

Note that this changes many of the command-line arguments

  • The required parameters have become positional args.
  • Some of the optional ones have been renamed to match corresponding variable/arg names within the code.
  • Some single-letter alternatives have been added.

This brings the interface more in line with standard command-line tools (on Linux).

@mhidasmhidas added this to the v2.0 milestone Jun 7, 2022
@mhidas

mhidas commented Aug 21, 2022

Copy link
Copy Markdown
Contributor

@alexgleith Why did you close this?
I still think it's relevant, though not high priority for us as we run this code with a Python process, not from a shell. However, as this is an open-source repo (I know at least one group at UNSW using it), the command-line functionality is there and this changes it in a non-backwards-compatible way, I'm saving this until we're ready to release a v2 (see https://github.com/aodn/python-aodntools/milestones)

@mhidasmhidas reopened this Aug 21, 2022
@alexgleith

Copy link
Copy Markdown
Contributor

I closed it because it hadn't been touched for over a year. Sorry :-)

Sign up for freeto 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

@ocehugo@mhidas@alexgleith