Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bo Zhang
csst
Commits
ca026c55
Commit
ca026c55
authored
Apr 11, 2022
by
BO ZHANG
🏀
Browse files
added how to include data
parent
77b9ca85
Changes
1
Show whitespace changes
Inline
Side-by-side
doc/source/fit_code.rst
View file @
ca026c55
...
...
@@ -49,3 +49,34 @@ A pipeline should have the structure like below. (see csst/)
def cleanup(self, **kwargs):
# clean up environment
pass
Include your data/config files
------------------------------
added on 2022-04-07
Example: the current astrometry module uses `scamp` to calibrate position.
In your module, use :
.. code-block:: python
from .. import PACKAGE_PATH
CONFIG_SCAMP = PACKAGE_PATH + "/msc/config/scamp.default"
In `setup.py`:
.. code-block:: python
package_data={"": ["LICENSE", "README.md"],
"csst": ["msc/config/*",
"msc/deepcr_model/*"
]},
Notes
-----
* DO NOT use `try-except` excessively, particularly in low level code.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment