Skip to content
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

AtomGraphs can't be built from files if a relative path is provided #120

Closed
thazhemadam opened this issue Oct 9, 2021 · 0 comments · Fixed by #121
Closed

AtomGraphs can't be built from files if a relative path is provided #120

thazhemadam opened this issue Oct 9, 2021 · 0 comments · Fixed by #121
Labels
bug Something isn't working

Comments

@thazhemadam
Copy link
Member

Trying to build an AtomGraph from a file doesn't seem to work if the path provided as input_file_path is a relative path.

julia> AtomGraph("test/test_data/strucs/mp-195.cif")

┌ Warning: Unable to build graph for test/test_data/strucs/mp-195.cif
└ @ ChemistryFeaturization.Atoms ~/Chemellia/ChemistryFeaturization.jl/src/atoms/atomgraph.jl:107
missing

This seems to be because rc[:paths][:crystals] = @__DIR__, that Xtals.jl requires (see here) hasn't been defined for relocatability with package compiler reasons (see discussion here).

@thazhemadam thazhemadam added the bug Something isn't working label Oct 9, 2021
thazhemadam added a commit that referenced this issue Oct 9, 2021
thazhemadam added a commit that referenced this issue Oct 9, 2021
Allow `AtomGraph`s to be built from relative file paths.
Also, add *.jls to the .gitignore.
@thazhemadam thazhemadam linked a pull request Oct 9, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant