-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fixes for Syntax Errors and other broken stuff #391
Conversation
Codecov Report
@@ Coverage Diff @@
## master #391 +/- ##
==========================================
- Coverage 45.83% 44.01% -1.83%
==========================================
Files 68 71 +3
Lines 4963 5185 +222
==========================================
+ Hits 2275 2282 +7
- Misses 2688 2903 +215
Continue to review full report at Codecov.
|
Regarding including and then here: the whole point was:
|
@@ -42,7 +42,8 @@ def find_scripts(script_dir, prefix): | |||
install_requires=[ | |||
'astropy', | |||
'ctapipe~=0.7.0', | |||
'eventio~=1.0', | |||
'ctaplot', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already discussed in the comments
But it is a dependency. It's imported in a cli program and used. Either, you don't want it as a dependency, than it needs to be removed completely or you use it, than it needs to be included. |
It seems this has happend: https://github.com/cta-observatory/ctaplot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change --input_file
to --input-file
and --output_file
to --output-file
I would say this has nothing to do with this PR. These are small fixes to obviously broken things. No API changes are made here. |
Right, but I was trying to produce new drs4 files with the onsite script and I found it's not working (apart from the |
great, what about the other point @vuillaut? |
I only modified the scripts within |
This point doesn't really matter to this PR. RIght now, in the master branch, ctaplot is a dependency. If you want to get rid of this depedency, do it. But as long as it is used, it belongs in setup.py. |
There are at the moment two scripts where It is included as an option in the first one: try:
import ctaplot
except ImportError as e:
print("ctaplot not installed, some plotting function will be missing") could you include it as an option on the second one instead of including it in the setup until this is worked out? |
I updated the branch with master latest changes (don't know if I should have done it) and now the tests are failing because of onsite scripts. Otherwise, it seems fine to me. |
@morcuended sure, no problem |
@morcuended what's the matter with the onsite scripts? Ah, found it. there is the |
Several things in the current master are broken
I added tests for all scripts to see if at least running the script with
--help
works andfixed a lot of simply broken stuff (Syntax errors due to missing or additional commas, missing imports)
ctaplot as dependency was also missing.
For convenience I also added ipython and jupyter to the environment as I just spend 15 Minutes of my life debugging why
import ctapipe
failed in the lst environment until I realized I was trying with/usr/bin/ipython
The eventio version was incompatible with the one required by ctapipe 0.7