Skip to content

Adding new departure statistics script#45

Open
IsabelTorresMonteiro wants to merge 2 commits intoACCORD-NWP:developfrom
IsabelTorresMonteiro:feature/add_stat_tool
Open

Adding new departure statistics script#45
IsabelTorresMonteiro wants to merge 2 commits intoACCORD-NWP:developfrom
IsabelTorresMonteiro:feature/add_stat_tool

Conversation

@IsabelTorresMonteiro
Copy link
Copy Markdown

departures statistics by time slot

@ewhelan ewhelan self-assigned this Mar 14, 2024
@ewhelan ewhelan self-requested a review March 14, 2024 18:02
@ewhelan ewhelan added the enhancement New feature or request label Mar 14, 2024
@ewhelan
Copy link
Copy Markdown
Collaborator

ewhelan commented Mar 14, 2024

Congratulations on your first PR! 🎉

Some documentation in doc/src would be great! 👍

Copy link
Copy Markdown
Collaborator

@ewhelan ewhelan left a comment

Choose a reason for hiding this comment

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

Thanks for this @IsabelTorresMonteiro

  1. Some questions asked and changes requested.
  2. You also need to add some documentation.

@@ -0,0 +1,231 @@
###
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hi @IsabelTorresMonteiro

A "help" option would be good for this script. You can look at other Python scripts to see what others have done.

A first blind test with this see the script just hanging. I guess it is waiting for input?

@@ -0,0 +1,305 @@
###
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this file used? It is not installed.

@@ -0,0 +1,345 @@

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this file used? It is not installed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It is used.

@@ -0,0 +1,231 @@
###
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Need a hash-bang here:

#!/usr/bin/env python3

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I have python3 in my .bashrc, I probably didn't notice

INPUT1="{}".format(Loop1)
INPUT2="{}".format(Loop2)
INPUT3="{}".format(Loop3)
#load data from ASCII from odb
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How is this ASCII produced? A clearer usage/help function is needed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

These scripts were developed a few years ago the full package includes a sh script which generates the ASCII files and a py script for statistics and visualisation. The full package (sh+py) as a README (txt) describying the scripts and usage. dep_stats.py is argparse if you do dep_stats.py -h you get information on the input filenames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants