Skip to content

Commit

Permalink
Update 20240514 (#15)
Browse files Browse the repository at this point in the history
* update cmip6

* added operator.py

* update operator

* update readme
  • Loading branch information
cehbrecht authored Aug 6, 2024
1 parent da47b3d commit 9e1f4b5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ piddiplatsch --help

Start consumer:
```
piddiplatsch consume
piddiplatsch consume --help
piddiplatsch consume --dry-run
```

Send a message to the rabbit queue:
```
piddiplatsch send
piddiplatsch send --help
piddiplatsch send -e wdcc.test examples/wdcc.json
piddiplatsch send -e wdcc.test examples/wdcc_invalid.json
piddiplatsch send -e cmip6.test examples/cmip6.json
```

## Credits
Expand Down
11 changes: 11 additions & 0 deletions piddiplatsch/handler/cmip6.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ def map(self, data):
"HAS_PARTS": data.get("has_parts"),
}
return record


def check_handle_exists():
"""
if handle_exists:
if is_replica:
if is_dataset:
check_fileset()
add_new_handle_to_record()
"""
pass
10 changes: 10 additions & 0 deletions piddiplatsch/operator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
def publish():
pass


def update():
pass


def unpublish():
pass

0 comments on commit 9e1f4b5

Please sign in to comment.