Skip to content

Commit

Permalink
Change designdoc names
Browse files Browse the repository at this point in the history
  • Loading branch information
lnauta committed Jan 2, 2025
1 parent e92f9a7 commit 78ec5d8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/core-scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

client = CouchDB(url=picasconfig.PICAS_HOST_URL, db=picasconfig.PICAS_DATABASE, username=picasconfig.PICAS_USERNAME, password=picasconfig.PICAS_PASSWORD)

design_doc_1c = "MonitorSingleCore"
design_doc_4c = "MonitorMultiCore"
design_doc_1c = "SingleCore"
design_doc_4c = "MultiCore"
work_1c_avail = client.is_view_nonempty("todo", design_doc=design_doc_1c)
work_4c_avail = client.is_view_nonempty("todo", design_doc=design_doc_4c)

Expand Down
4 changes: 2 additions & 2 deletions examples/createViews.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ def get_db():
db = get_db()
# Create the Views in database
createViews(db)
createViews(db, design_doc_name='MonitorSingleCore', logic_appendix=' && doc.cores == 1')
createViews(db, design_doc_name='MonitorMultiCore', logic_appendix=' && doc.cores == 4')
createViews(db, design_doc_name='SingleCore', logic_appendix=' && doc.cores == 1')
createViews(db, design_doc_name='MultiCore', logic_appendix=' && doc.cores == 4')
4 changes: 2 additions & 2 deletions examples/local_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import os
import time
import couchdb
import picasconfig

from picas.actors import RunActor
from picas.clients import CouchDB
Expand All @@ -24,7 +25,6 @@
from picas.iterators import EndlessViewIterator
from picas.modifiers import BasicTokenModifier
from picas.util import Timer
from . import picasconfig

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -87,7 +87,7 @@ def arg_parser():
parser = argparse.ArgumentParser(description="Arguments used in the different classes in the example.")
parser.add_argument("-d", "--design_doc", default="Monitor", type=str, help="Select the designdoc used by the actor class")
parser.add_argument("-V", "--view", default="todo", type=str, help="Select the view used by the actor class")
parser.add_argument("-v", "--verbose", action="store_true", type=bool, help="Set verbose") # add v for optional verbosity in the future
parser.add_argument("-v", "--verbose", action="store_true", help="Set verbose") # add v for optional verbosity in the future
return parser.parse_args()


Expand Down
2 changes: 1 addition & 1 deletion examples/multi-core-job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

#SBATCH -c 4

python local_example.py -d MonitorMultiCore
python local_example.py -d MultiCore
2 changes: 1 addition & 1 deletion examples/single-core-job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

#SBATCH -c 1

python local_example.py -d MonitorSingleCore
python local_example.py -d SingleCore

0 comments on commit 78ec5d8

Please sign in to comment.