-
Hi everyone, Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @YangNi20, Thank you for your question - "Cinema" sounds like an interesting project and I am happy to hear you are using NCrystal :-) Fortunately, there are several ways you can make NCrystal find your files: From Python: import NCrystal as NC
NC.addCustomSearchDirectory("/path/to/your/files") From C++: #include "NCrystal/NCrystal.hh"
//...
NCrystal::DataSources::addCustomSearchDirectory("/path/to/your/files"); Or you can simply add your directory to the export NCRYSTAL_DATA_PATH="/path/to/your/files:$NCRYSTAL_DATA_PATH" Finally, I should perhaps remind you that you can also register "files" in-memory rather than having to create physical files - that is particularly useful when you are autogenerating NCMAT data on the fly (see for instance the python/C++ functions Cheers, |
Beta Was this translation helpful? Give feedback.
-
@YangNi20 did the answer work for you? (a short reply or marking the answer as accepted would be nice). |
Beta Was this translation helpful? Give feedback.
-
Hi @YangNi20 . You used the wrong variable name. The Btw., the results from the |
Beta Was this translation helpful? Give feedback.
Hi @YangNi20,
Thank you for your question - "Cinema" sounds like an interesting project and I am happy to hear you are using NCrystal :-)
Fortunately, there are several ways you can make NCrystal find your files:
From Python:
From C++:
Or you can simply add your directory to the
NCRYSTAL_DATA_PATH
environment variable, for instance from a shell:Finally, I should perhaps remind you that you can also register "files" in-memory rather than havi…