-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b655529
commit f756c9c
Showing
5 changed files
with
164 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
import sys | ||
|
||
from dataregistry import DataRegistry | ||
|
||
_TEST_ROOT_DIR = "DataRegistry_data" | ||
|
||
# Make root dir | ||
if not os.path.isdir(_TEST_ROOT_DIR): | ||
os.makedirs(_TEST_ROOT_DIR) | ||
|
||
# Establish connection to database | ||
datareg = DataRegistry(root_dir=_TEST_ROOT_DIR) | ||
|
||
# Add new entry. | ||
datareg.Registrar.register_dataset( | ||
"dm.txt", | ||
"0.0.1", | ||
verbose=True, | ||
old_location="inputs/dm.txt" | ||
) | ||
|
||
datareg.Registrar.register_dataset( | ||
"fiducial_cosmology.txt", | ||
"0.0.1", | ||
verbose=True, | ||
old_location="inputs/fiducial_cosmology.txt" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Python modules that are imported to find | ||
# stage classes. Any stages imported in these | ||
# modules are automatically detected and their names can | ||
# be used below | ||
modules: ceci_example | ||
|
||
# The launcher to use | ||
# These are defined in ceci/sites | ||
launcher: | ||
name: mini | ||
interval: 0.5 | ||
|
||
# launcher: | ||
# name: parsl | ||
# # max_threads only referenced for local sites | ||
# #log: parsl_log.txt | ||
|
||
# launcher: | ||
# name: cwl | ||
# launcher: cwltool | ||
# dir: ./test/cwl | ||
|
||
site: | ||
name: local | ||
max_threads: 4 | ||
# max_threads: 4 | ||
# container: joezuntz/txpipe | ||
# volume: $PWD:/opt/txpipe | ||
|
||
|
||
|
||
#site: | ||
# name: nersc-interactive | ||
# # Put the log for the overall pipeline infrastructure in this file: | ||
# pipeline_log: log.txt | ||
|
||
# site: | ||
# name: nersc-batch | ||
# cpu_type: haswell | ||
# queue: debug | ||
# max_jobs: 2 | ||
# account: m1727 | ||
# walltime: "00:30:00" | ||
# setup: /global/projecta/projectdirs/lsst/groups/WL/users/zuntz/setup-cori | ||
|
||
|
||
|
||
# The list of stages to run and the number of processors | ||
# to use for each. | ||
stages: | ||
- name: WLGCSummaryStatistic | ||
nprocess: 1 | ||
threads_per_process: 2 | ||
- name: SysMapMaker | ||
nprocess: 1 | ||
- name: shearMeasurementPipe | ||
nprocess: 1 | ||
- name: PZEstimationPipe | ||
nprocess: 1 | ||
- name: WLGCRandoms | ||
nprocess: 1 | ||
- name: WLGCSelector | ||
nprocess: 1 | ||
- name: SourceSummarizer | ||
nprocess: 1 | ||
- name: WLGCTwoPoint | ||
nprocess: 1 | ||
- name: WLGCCov | ||
nprocess: 1 | ||
|
||
# Definitions of where to find inputs for the overall pipeline. | ||
# Any input required by a pipeline stage that is not generated by | ||
# a previous stage must be defined here. They are listed by tag. | ||
inputs: | ||
DM: | ||
id: 1 | ||
fiducial_cosmology: | ||
id: 2 | ||
|
||
# Overall configuration file | ||
config: ./tests/config.yml | ||
|
||
# If all the outputs for a stage already exist then do not re-run that stage | ||
resume: False | ||
|
||
# Put all the output files in this directory: | ||
output_dir: ./tests/outputs | ||
|
||
# Put the logs from the individual stages in this directory: | ||
log_dir: ./tests/logs | ||
|
||
# Point to the root directory of the dataregistry | ||
registry: | ||
root_dir: ./tests/DataRegistry_data |