Skip to content

closes #24: check if args.input_file is specified #35

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

Closed
wants to merge 2 commits into from

Conversation

yucongalicechen
Copy link
Collaborator

@yucongalicechen yucongalicechen commented Apr 29, 2024

Initial commit

Specify input directory with default as cwd, glob all files in directory and write outputs
Skip non-readable files using loadData (try except and provide an error message)

(need suggestions) still need to implement the following: compute cve only one time. We probably need to split compute_cve function to achieve this, having one function compute cves using tth we defined, and a second function to interpolat across different tths for different input files.

Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

please see inline comment. What are some read failures?

xarray, yarray = loadData(filepath.name, unpack=True)
try:
xarray, yarray = loadData(filepath, unpack=True)
except Exception as e:
Copy link
Contributor

Choose a reason for hiding this comment

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

please specify a specific exception or exceptions, not a general one.

@yucongalicechen yucongalicechen deleted the input_file branch May 7, 2024 13:52
@sbillinge
Copy link
Contributor

sbillinge commented May 7, 2024 via email

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