Skip to content

Conversation

davidangarita1
Copy link

No description provided.

Copy link
Member

@ayjayt ayjayt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perdón, otra reunion sobre esto

Comment on lines +40 to +47
mnemonics = []
for axis in axes:
for trace in axis.get_traces():
mnemonics.append(trace.get_mnemonic())
self.pop_axes(
*mnemonics, strict_index=False, exclude=kwargs.get("exclude", None)
)
self.add_axes(*axes, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

el formateo tiene mal gusto? Este me parece raro creo que hay un problema con github

import pint
from IPython.display import HTML, display

from .registry_config import registry_defines, registry_mapping
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

estilo nodejs, yo todavia prefiero el namespace

from . import registry_config

registry_config.registry_defines()
registry_config.registry_mapping()

# o mejor

registry_config.init_defines()
registry_config.init_mapping()

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

red_low = re.compile(r'<td>(.+)?(?:LOW|NONE)(.+)?</td>')
orange_medium = re.compile(r'<td>(.+)?MEDIUM(.+)?</td>')

def check_las(las, registry=registry, HTML_out=True, divid=""):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def check_las(las, registry=registry, *, HTML=True, div_id=""):

no recuerdo por que tengo HTML_out=True/False?

Copy link
Author

@davidangarita1 davidangarita1 Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por esto:
result = [delimiter.join(col_names)] if HTML_out else []

self._mnemonic_to_units = {}
self._units_to_mnemonic = {}

def register_mapping(self, mnemonic, unit, ranges):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

necesito tipos y tambien documentación para entender lo que hice


self._mnemonic_to_units[mnemonic][unit] = ranges

for ra in ranges:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ra in ranges" 🙄 que hice

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mejor "r" o "range"?

Comment on lines +39 to +41
if mnemonic not in self._mnemonic_to_units:
self._mnemonic_to_units[mnemonic] = {}
self._units_to_mnemonic[mnemonic] = {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debo usar setdefault

# Or would we just use a default registery like in init
class LasRegistry(pint.UnitRegistry):
# Or would we just use a default register like in init
class LasUnitRegistry(pint.UnitRegistry):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no es posible quitarnos de esta clase de alguna forma?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y también proveer una api bien simplificada

"lasio"
]
"lasio",
"anywidget>=0.9.18",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

creo que ipywidgets y anywidgets estan.... juntos, tal vez

anywidget tiene ipywidget o al reves

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants