https://github.com/bsc-es/autosubmit-config-parser

Library used to read Autosubmit 4 experiment data.

https://github.com/bsc-es/autosubmit-config-parser

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.3%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Library used to read Autosubmit 4 experiment data.

Basic Info
  • Host: GitHub
  • Owner: BSC-ES
  • Language: Python
  • Default Branch: main
  • Size: 618 KB
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • Open Issues: 32
  • Releases: 0
Created over 1 year ago · Last pushed 11 months ago
Metadata Files
Readme Changelog

README.md

Simple library that allows to read the data of an Autosubmit experiment.

Usage:

```python

import the main config library

from autosubmitconfigparser.config.configcommon import AutosubmitConfig import os

Init the configuration object where expid = experiment identifier that you want to load

expid = "a01y" as_conf = AutosubmitConfig("a01y")

This will load the data from the experiment

as_conf.reload(True)

all data is stored in the asconf.experimentdata dictionary

asconf.experimentdata

Obtain only section data

asconf.jobsdata

Obtain only platforms data

asconf.platformsdata

Obtain all data in parameter format( %SECTION%.%SUBSECTION%.%SUBSECTION% )

parameters = asconf.deepparametersexport(asconf.experiment_data)

To parse the placeholders from a file use the following function

write sample text

with open("as_sample.txt", "w") as f: f.write("This is a sample text with a placeholder %DEFAULT.EXPID%")

write the parsed text

with open("assampleparsed.txt", "w") as f: f.write(asconf.parseplaceholders(open("as_sample.txt","r").read(), parameters))

print the file content

with open("as_sample.txt", "r") as f: print(f.read())

print the file content

with open("assampleparsed.txt", "r") as f: print(f.read())

Result must be:

This is a sample text with a placeholder %DEFAULT.EXPID%

This is a sample text with a placeholder expid

delete samples

os.remove("assample.txt") os.remove("assample_parsed.txt") ```

Owner

  • Name: Earth Sciences Department
  • Login: BSC-ES
  • Kind: organization
  • Location: Barcelona, Spain

Barcelona Supercomputing Center

GitHub Events

Total
  • Issues event: 107
  • Watch event: 2
  • Delete event: 38
  • Issue comment event: 882
  • Push event: 131
  • Pull request review event: 92
  • Pull request review comment event: 77
  • Pull request event: 68
  • Fork event: 1
  • Create event: 62
Last Year
  • Issues event: 107
  • Watch event: 2
  • Delete event: 38
  • Issue comment event: 882
  • Push event: 131
  • Pull request review event: 92
  • Pull request review comment event: 77
  • Pull request event: 68
  • Fork event: 1
  • Create event: 62

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 13
  • Total pull requests: 16
  • Average time to close issues: 9 months
  • Average time to close pull requests: 6 days
  • Total issue authors: 6
  • Total pull request authors: 6
  • Average comments per issue: 0.54
  • Average comments per pull request: 3.44
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 3
Past Year
  • Issues: 12
  • Pull requests: 16
  • Average time to close issues: 2 days
  • Average time to close pull requests: 6 days
  • Issue authors: 5
  • Pull request authors: 6
  • Average comments per issue: 0.42
  • Average comments per pull request: 3.44
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 3
Top Authors
Issue Authors
  • LuiggiTenorioK (88)
  • dbeltrankyl (5)
  • kinow (5)
  • ainagaya (3)
  • isimo00 (2)
  • Lerriola (1)
Pull Request Authors
  • dbeltrankyl (15)
  • LuiggiTenorioK (9)
  • dependabot[bot] (7)
  • kinow (2)
  • isimo00 (2)
  • VindeeR (1)
  • Lerriola (1)
Top Labels
Issue Labels
gitlab merge request (23) bug (9) enhancement (3) good first issue (3) critical (3) testing (3) new feature (2) to do (2)
Pull Request Labels
enhancement (1) testing (1) blocked (1)

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v4 composite
environment.yml pypi
  • argparse >=1.4.0
  • autosubmitconfigparser *
  • bscearth.utils >=0.5.2
  • configobj *
  • coverage *
  • cryptography >=36.0.1
  • matplotlib >=3.5.1
  • mock >=4.0.3
  • nose *
  • numpy >=1.22.2
  • portalocker >=2.3.2
  • pyparsing >=3.0.7
  • pytest *
  • python-dateutil >=2.8.2
  • pythondialog *
  • requests *
  • requests >=2.27.1
  • ruamel.yaml *
  • setuptools >=60.8.2
  • six >=1.10.0
  • xlib >=0.21
requirements.txt pypi
  • bscearth.utils *
  • configobj *
  • configparser *
  • mock *
  • pyparsing *
  • ruamel.yaml ==0.18.6
setup.py pypi
  • bscearth.utils *
  • configobj *
  • configparser *
  • mock *
  • pyparsing *
  • ruamel.yaml ==0.18.6