-
Notifications
You must be signed in to change notification settings - Fork 12
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
directory structure for the arkouda-contrib
repo
#3
Comments
For adding code to the client, someone from the Chapel team recommended using I haven't deeply looked into this, but it seems like it would work to me. |
I agree with @bmcdonald3 on using import json
import importlib
with open('required_modules.json') as json_file:
mods = json.load(json_file)
for m in mods:
importlib.import_module(m) I am not sure this will have the desired outcome though because you won't be able to access the imported module directly. It would still need to be imported by the user. If we wanted to allow direct access, we would need a top level package that subpackages can be placed under. Example code of how this would like using import arkouda as ak
empty_df = ak.akutil.DataFrame() I may be missing something obvious here. I discussed with @pierce314159 as well and we are both thinking it is worth further discussion to ensure we are all at least on the same page with the desired outcome in functionality. As for the directory structure, I do not have an issue with the proposed configuration. I am interested to see if @bmcdonald3 has an issues when converting it. |
Adding a note from conversation with @mhmerrill last week. @glitch wrote code in the arkouda-njit repo to give the commands that need to be run to pull in an external module. It looks like we should be able to adapt this to work here. Additionally, we should be able to configure something similar if we want to handle pulling the python in directly. I think we have some other options than this as well, but thought I would add this as a discussion point. |
I wanted to add a few notes here after running down an issue with the Python imports this morning. In PR #6 and #7, I set it up to run
All of these would function in the same manner: import arkouda as ak
import yourModule
# Write some code If anyone has a preferred method or has other ideas, please let me know. Again, this list is not exhaustive just the ideas I have looked at and seen as viable solutions so far. I plan to test each today and see which will be the easiest for managing on the Arkouda side, but also easiest for a user. UPDATE |
I go confused about where the |
git submodule
? here is a tutorialpython
and/orcmake
or some other tools? best practices?The text was updated successfully, but these errors were encountered: